code: def compose_all(stream, Loader=Loader):
      """
      Parse all YAML documents in a stream
      and produce corresponding representation trees.
      """
      loader = Loader(stream)
      try:
          while loader.check_node():
              yield loader.get_node()
      finally:
          loader.dispose()
  
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 6 for calling a global function with example usage: compose_all(stream, Loader) without return types