code: def expect_document_end(self):
      if isinstance(self.event, DocumentEndEvent):
          self.write_indent()
          if self.event.explicit:
              self.write_indicator("...", True)
              self.write_indent()
          self.flush_stream()
          self.state = self.expect_document_start
      else:
          raise EmitterError(
              "expected DocumentEndEvent, but got %s" % self.event
          )
  
imports: from .error import YAMLError
  from .events import *
label_desc: Use image node_id 11 for calling the Emitter obj's underlying member method code with example usage: obj.expect_document_end() without return types