code: 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)
  
imports: from .error import *
  from .tokens import *
  from .events import *
  from .nodes import *
  from .loader import *
  from .dumper import *
  import io
label_desc: Use image node_id 19 for calling a global function with example usage: dump(data, stream, Dumper) and returns: dump_all