code: def load(fh, single=False):
      
      ms = deserialize(fh)
      if single:
          ms = next(ms)
      return ms
docs: Deserialize DMRX from a file (handle or filename)
  
      Args:
          fh (str, file): input filename or file object
          single: if `True`, only return the first read Xmrs object
      Returns:
          a generator of Xmrs objects (unless the *single* option is
          `True`)