code: def consult_hook(self, item_session: ItemSession, verdict: bool,
                       reason: str, test_info: dict):
          '''Consult the scripting hook.
  
          Returns:
              tuple: (bool, str)
          '''
          try:
              reasons = {
                  'filters': test_info['map'],
                  'reason': reason,
              }
  
              verdict = self.hook_dispatcher.call(
                  PluginFunctions.accept_url, item_session, verdict, reasons,
              )
              reason = 'callback_hook'
          except HookDisconnected:
              pass
  
          return verdict, reasof consult_hook(self, item_session: ItemSession, verdict: bool,
                       reason: str, test_info: dict):
          '''Consult the scripting hook.
  
          Returns:
              tuple: (bool, str)
          '''
          try:
              reasons = {
                  'filters': test_info['map'],
                  'reason': reason,
              }
  
              verdict = self.hook_dispatcher.call(
                  PluginFunctions.accept_url, item_session, verdict, reasons,
              )
              reason = 'callback_hook'
          except HookDisconnected:
              pass
  
          return verdict, reason
docs: Consult the scripting hook.
  
          Returns:
              tuple: (bool, str)