code: def unregister(self, name: str):
          '''Unregister hook.'''
          del self._callbacks[name]
  
          if self._event_dispatcher is not None:
              self._event_dispatcher.unregister(namef unregister(self, name: str):
          '''Unregister hook.'''
          del self._callbacks[name]
  
          if self._event_dispatcher is not None:
              self._event_dispatcher.unregister(name)
docs: Unregister hook.