code: def compose(stream, Loader=Loader):
      """
      Parse the first YAML document in a stream
      and produce the corresponding representation tree.
      """
      loader = Loader(stream)
      try:
          return loader.get_single_node()
      finally:
          loader.dispose()
  
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 5 for calling a global function with example usage: compose(stream, Loader) and returns: loader