code: def safe_dump(data, stream=None, **kwds):
      """
      Serialize a Python object into a YAML stream.
      Produce only basic YAML tags.
      If stream is None, return the produced string instead.
      """
      return dump_all([data], stream, Dumper=SafeDumper, **kwds)
  
imports: from error import *
  from tokens import *
  from events import *
  from nodes import *
  from loader import *
  from dumper import *
label_desc: Use image node_id 21 for calling a global function with example usage: safe_dump(data, stream) and returns: dump_all