<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def trigger(self, event, *args):
 """Trigger event by name."""

        for handler in self._event_handlers[event]:
            handler(*args)