code: def _create_emitter(self, event):
          
          if not hasattr(self, event):
              setattr(self, event,
                      lambda *args, **kwargs: self.emit(event, *args, **kwargs))
docs: Create a method that emits an event of the same name.