def load(filename, format=None, **kwargs):
from neuropythy.util import ObjectWithMetaData<EOL>filename = os.path.expanduser(filename)<EOL>if format is None:<EOL><INDENT>format = guess_import_format(filename, **kwargs)<EOL>if format is None:<EOL><INDENT>for (k,(f,_,_)) in six.iteritems(importers):<EOL><INDENT>try:              return f(filename, **kwargs)<EOL>except Exception: pass<EOL><DEDENT>raise ValueError('<STR_LIT>' % filename)<EOL><DEDENT><DEDENT>format = format.lower()<EOL>if format not in importers:<EOL><INDENT>raise ValueError('<STR_LIT>' % format)<EOL><DEDENT>(f,_,_) = importers[format]<EOL>obj = f(filename, **kwargs)<EOL>if isinstance(obj, ObjectWithMetaData): return obj.with_meta(source_filename=filename)<EOL>else: return obj<EOL>
load(filename) yields the data contained in the file referenced by the given filename in a
  neuropythy or neuropythy-friendly format.
load(filename, format) specifies that the given format should be used; this should be the name
  of the importer (though a file extension that is recognized also will work).

Additionally, functions located in load.<format> may be used; so, for example, the following
are equivalent calls:
  load(filename, 'nifti')
  load.nifti(filename)
In fact, the load.nifti function is just the nifti importer, so help(load.nifti) will also
yield documentation for the nifti importer.

Keyword options may be passed to load; these must match those accepted by the given import
function.