code: def dump(destination, xs, model=None, properties=False, indent=True, **kwargs):
      
      text = dumps(
          xs, model=model, properties=properties, indent=indent, **kwargs
      )
      if hasattr(destination, 'write'):
          print(text, file=destination)
      else:
          with open(destination, 'w') as fh:
              print(text, file=fh)
docs: Serialize Xmrs (or subclass) objects to PENMAN and write to a file.
  
      Args:
          destination: filename or file object
          xs: iterator of :class:`~delphin.mrs.xmrs.Xmrs` objects to
              serialize
          model: Xmrs subclass used to get triples
          properties: if `True`, encode variable properties
          indent: if `True`, adaptively indent; if `False` or `None`,
              don't indent; if a non-negative integer N, indent N spaces
              per level