<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_all_handlers(self) -> T.Dict[str, T.List[T.Callable]]: """Returns a dict with event names as keys and lists of registered handlers as values."""


        events = {}
        for event, handlers in self._events.items():
            events[event] = list(handlers)
        return events