code: def remove_all_listeners(self, event=None):
          
          if event is not None:
              self._events[event] = OrderedDict()
          else:
              self._events = defaultdict(OrderedDict)
docs: Remove all listeners attached to ``event``.
          If ``event`` is ``None``, remove all listeners on all events.