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