def import_from_csv(<EOL>filename_or_fobj,<EOL>encoding="<STR_LIT:utf-8>",<EOL>dialect=None,<EOL>sample_size=<NUM_LIT>,<EOL>*args,<EOL>**kwargs<EOL>):
source = Source.from_file(<EOL>filename_or_fobj, plugin_name="<STR_LIT>", mode="<STR_LIT:rb>", encoding=encoding<EOL>)<EOL>if dialect is None:<EOL><INDENT>dialect = discover_dialect(<EOL>sample=read_sample(source.fobj, sample_size), encoding=source.encoding<EOL>)<EOL><DEDENT>reader = unicodecsv.reader(source.fobj, encoding=encoding, dialect=dialect)<EOL>meta = {"<STR_LIT>": "<STR_LIT>", "<STR_LIT:source>": source}<EOL>return create_table(reader, meta=meta, *args, **kwargs)<EOL>
Import data from a CSV file (automatically detects dialect).

    If a file-like object is provided it MUST be in binary mode, like in
    `open(filename, mode='rb')`.