code: def serialize(node, stream=None, Dumper=Dumper, **kwds):
      
      return serialize_all([node], stream, Dumper=Dumper, **kwds)
docs: Serialize a representation tree into a YAML stream.
      If stream is None, return the produced string instead.