code: def deregister(self, event, fn):
          
          if event in self._handler_dict and fn in self._handler_dict[event]:
              self._handler_dict[event].remove(fn)
docs: Deregister the handler function from the given event.