code: def load(self, file, name=None):
          
          if name is None:
              name = self.format_from_extension(op.splitext(file)[1])
          file_format = self.file_type(name)
          if file_format == 'text':
              return _read_text(file)
          elif file_format == 'json':
              return _read_json(file)
          else:
              load_function = self._formats[name].get('load', None)
              if load_function is None:
                  raise IOError("The format must declare a file type or "
                                "load/save functions.")
              return load_function(file)
docs: Load a file. The format name can be specified explicitly or
          inferred from the file extension.