code: def emit(self, event):
      self.events.append(event)
      while not self.need_more_events():
          self.event = self.events.pop(0)
          self.state()
          self.event = None
  
imports: from .error import YAMLError
  from .events import *
label_desc: Use image node_id 3 for calling the Emitter obj's underlying member method code with example usage: obj.emit(event) without return types