class_docstr: TaskHooks can handle some tasks during the spectific event.
class_docstr_tok: ["TaskHooks","can","handle","some","tasks","during","the","spectific","event","."]
code: def __getitem__(self, hook_type: str) -> OrderedDict:
      return self._registered_hooks[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 7 for calling the TaskHooks obj's underlying member method code with example usage: obj.__getitem__(hook_type) and returns: self