<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def is_registered(self, event: str, handler: T.Callable) -> bool: """Returns whether the given handler is registered for the given event."""


        return handler in self._events.get(event, [])