code: def import_from_source(source, default_encoding, *args, **kwargs):
      "Import data described in a `rows.Source` into a `rows.Table`"
  
      # TODO: test open_compressed
      plugin_name = source.plugin_name
      kwargs["encoding"] = (
          kwargs.get("encoding", None) or source.encoding or default_encoding
      )
  
      try:
          import_function = getattr(rows, "import_from_{}".format(plugin_name))
      except AttributeError:
          raise ValueError('Plugin (import) "{}" not found'.format(plugin_name))
  
      table = import_function(source.uri, *args, **kwargs)
  
      return tablf import_from_source(source, default_encoding, *args, **kwargs):
      "Import data described in a `rows.Source` into a `rows.Table`"
  
      # TODO: test open_compressed
      plugin_name = source.plugin_name
      kwargs["encoding"] = (
          kwargs.get("encoding", None) or source.encoding or default_encoding
      )
  
      try:
          import_function = getattr(rows, "import_from_{}".format(plugin_name))
      except AttributeError:
          raise ValueError('Plugin (import) "{}" not found'.format(plugin_name))
  
      table = import_function(source.uri, *args, **kwargs)
  
      return table
docs: Import data described in a `rows.Source` into a `rows.Table`