code: def emit(self, event, *args, **kwargs):
          
          handled = False
  
          for f in list(self._events[event].values()):
              self._emit_run(f, args, kwargs)
              handled = True
  
          if not handled:
              self._emit_handle_potential_error(event, args[0] if args else None)
  
          return handled
docs: Emit ``event``, passing ``*args`` and ``**kwargs`` to each attached
          function. Returns ``True`` if any functions are attached to ``event``;
          otherwise returns ``False``.
  
          Example::
  
              ee.emit('data', '00101001')
  
          Assuming ``data`` is an attached function, this will call
          ``data('00101001')'``.