docs: def dump(data, stream=None, Dumper=Dumper, **kwds):
      """
      Serialize a Python object into a YAML stream.
      If stream is None, return the produced string instead.
      """
      return dump_all([data], stream, Dumper=Dumper, **kwds)