code: def call(self, name: str, *args, **kwargs):
          '''Invoke the callback.'''
          if self._event_dispatcher is not None:
              self._event_dispatcher.notify(name, *args, **kwargs)
  
          if self._callbacks[name]:
              return self._callbacks[name](*args, **kwargs)
          else:
              raise HookDisconnected('No callback is connected.'f call(self, name: str, *args, **kwargs):
          '''Invoke the callback.'''
          if self._event_dispatcher is not None:
              self._event_dispatcher.notify(name, *args, **kwargs)
  
          if self._callbacks[name]:
              return self._callbacks[name](*args, **kwargs)
          else:
              raise HookDisconnected('No callback is connected.')
docs: Invoke the callback.