def load_data(handle, reader=None):
if not reader:<EOL><INDENT>reader = os.path.splitext(handle)[<NUM_LIT:1>][<NUM_LIT:1>:].lower()<EOL><DEDENT>if reader not in _READERS:<EOL><INDENT>raise NeuroMError('<STR_LIT>' % reader)<EOL><DEDENT>filename = _get_file(handle)<EOL>try:<EOL><INDENT>return _READERS[reader](filename)<EOL><DEDENT>except Exception as e:<EOL><INDENT>L.exception('<STR_LIT>', filename, reader)<EOL>raise RawDataError('<STR_LIT>' % (filename, str(e)))<EOL><DEDENT>
Unpack data into a raw data wrapper