code: def parse_document_end(self):
      # Parse the document end.
      token = self.peek_token()
      start_mark = end_mark = token.start_mark
      explicit = False
      if self.check_token(DocumentEndToken):
          token = self.get_token()
          end_mark = token.end_mark
          explicit = True
      event = DocumentEndEvent(start_mark, end_mark, explicit=explicit)
  
      # Prepare the next state.
      self.state = self.parse_document_start
  
      return event
  
imports: from .error import MarkedYAMLError
  from .tokens import *
  from .events import *
  from .scanner import *
label_desc: Use image node_id 9 for calling the Parser obj's underlying member method code with example usage: obj.parse_document_end() and returns: event