docs: def load_data(fpath, **kwargs):
      """ More generic interface to load data """
      ext = splitext(fpath)[1]
      if ext in ['.pickle', '.cPkl', '.pkl']:
          return load_cPkl(fpath, **kwargs)
      elif ext in ['.json']:
          return load_json(fpath, **kwargs)
      elif ext in ['.hdf5']:
          return load_hdf5(fpath, **kwargs)
      elif ext in ['.txt']:
          return load_text(fpath, **kwargs)
      elif HAS_NUMPY and ext in ['.npz', '.npy']:
          return load_numpy(fpath, **kwargs)
      else:
          assert False, 'unknown ext=%r for fpath=%r' % (ext, fpath)