code: def parse(stream, Loader=Loader):
      """
      Parse a YAML stream and produce parsing events.
      """
      loader = Loader(stream)
      try:
          while loader.check_event():
              yield loader.get_event()
      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 4 for calling a global function with example usage: parse(stream, Loader) without return types