docs: def dump(collection: BioCCollection, fp, pretty_print: bool = True):
      """
      Serialize ``collection`` as a BioC formatted stream to ``fp``.
  
      Args:
          collection: the BioC collection
          fp: a ``.write()``-supporting file-like object
          pretty_print: enables formatted XML
      """
      fp.write(dumps(collection, pretty_print))