code: def consult_pre_response_hook(self, item_session: ItemSession) -> Actions:
          '''Return scripting action when a response begins.'''
          try:
              return self.hook_dispatcher.call(
                  PluginFunctions.handle_pre_response,
                  item_session
              )
          except HookDisconnected:
              return Actions.NORMAf consult_pre_response_hook(self, item_session: ItemSession) -> Actions:
          '''Return scripting action when a response begins.'''
          try:
              return self.hook_dispatcher.call(
                  PluginFunctions.handle_pre_response,
                  item_session
              )
          except HookDisconnected:
              return Actions.NORMAL
docs: Return scripting action when a response begins.