def _create_emitter(self, event):
        if not hasattr(self, event):
            setattr(self, event,
                    lambda *args, **kwargs: self.emit(event, *args, **kwargs))
Create a method that emits an event of the same name.
dataset/ETHPy150Open kwikteam/phy/phy/utils/event.py/EventEmitter._create_emitter