code: def compose_document(self):
      # Drop the DOCUMENT-START event.
      self.get_event()
  
      # Compose the root node.
      node = self.compose_node(None, None)
  
      # Drop the DOCUMENT-END event.
      self.get_event()
  
      self.anchors = {}
      return node
  
file_path: keepsake/python/keepsake/_vendor/yaml/composer.py
imports: from .error import MarkedYAMLError
  from .events import *
  from .nodes import *
label_desc: Use image node_id 5 for calling the Composer obj's underlying member method code with example usage: obj.compose_document() and returns: node