def import_from_source(source, default_encoding, *args, **kwargs):
<EOL>plugin_name = source.plugin_name<EOL>kwargs["<STR_LIT>"] = (<EOL>kwargs.get("<STR_LIT>", None) or source.encoding or default_encoding<EOL>)<EOL>try:<EOL><INDENT>import_function = getattr(rows, "<STR_LIT>".format(plugin_name))<EOL><DEDENT>except AttributeError:<EOL><INDENT>raise ValueError('<STR_LIT>'.format(plugin_name))<EOL><DEDENT>table = import_function(source.uri, *args, **kwargs)<EOL>return table<EOL>
Import data described in a `rows.Source` into a `rows.Table`