docs: def reader(path_or_f):
      """
      Turns a path to a compressed file into a file-like object of (decompressed)
      data.
  
      :Parameters:
          path : `str`
              the path to the dump file to read
      """
      if hasattr(path_or_f, "read"):
          return path_or_f
      else:
          path = path_or_f
  
      path = normalize_path(path)
      _, extension = extract_extension(path)
  
      reader_func = FILE_READERS[extension]
  
      return reader_func(path)