code: def remove_listener(self, func, name=None):
          
  
          name = func.__name__ if name is None else name
  
          if name in self.extra_events:
              try:
                  self.extra_events[name].remove(func)
              except ValueError:
                  pass
docs: Removes a listener from the pool of listeners.
  
          Parameters
          -----------
          func
              The function that was used as a listener to remove.
          name: :class:`str`
              The name of the event we want to remove. Defaults to
              ``func.__name__``.