code: def emit(self, message, *args, **kwargs):
          '''Emit an event.'''
          global_event_queue.append((message, self, args, kwargs)f emit(self, message, *args, **kwargs):
          '''Emit an event.'''
          global_event_queue.append((message, self, args, kwargs))
docs: Emit an event.