class_docstr: TaskHooks can handle some tasks during the spectific event.
class_docstr_tok: ["TaskHooks","can","handle","some","tasks","during","the","spectific","event","."]
docstr: delete the handler function of spectific event.
  Args:
      hook_type (str): the spectific event name
      name (str): the handler function name
docstr_tok: ["delete","the","handler","function","of","spectific","event",".","Args",":","hook_type","(","str",")",":","the","spectific","event","name","name","(","str",")",":","the","handler","function","name"]
code: def delete(self, hook_type: str, name: str):
      """
      delete the handler function of spectific event.
      Args:
          hook_type (str): the spectific event name
          name (str): the handler function name
      """
      if self.exist(hook_type, name):
          del self._registered_hooks[hook_type][name]
      else:
          raise ValueError(
              "No hook_type: %s exists or name: %s does not exist in hook_type: %s"
              % (hook_type, name, hook_type)
          )
  
file_path: PaddleHub/paddlehub/compat/task/hook.py
imports: import inspect
  from collections import OrderedDict
  from typing import Callable
label_desc: Use image node_id 3 for calling the TaskHooks obj's underlying member method code with example usage: obj.delete(hook_type, name) without return types