code: def read_tabular(filepath):
      
      _, fn, ext = splitext2(filepath)
      if ext == '.h5':
          return _read_tabular_h5(filepath)
      elif ext == '.pkl':
          return _read_tabular_pickle(filepath)
      else:
          raise NotImplementedError
docs: Read tabular object in HDF5 or pickle format
  
      Args:
          filepath (path-like): path to read to; must end in '.h5' or '.pkl'