class_docstr: An abstract base class for a training task.
  
  A ClassyTask encapsulates all the components and steps needed
  to train using a :class:`classy_vision.trainer.ClassyTrainer`.
class_docstr_tok: ["An","abstract","base","class","for","a","training","task",".","A","ClassyTask","encapsulates","all","the","components","and","steps","needed","to","train","using","a",":","class",":","`","classy_vision.trainer.ClassyTrainer","`","."]
docstr: Helper function that runs a hook function for all the
  :class:`classy_vision.hooks.ClassyHook`.
  
  Args:
      local_variables: Local variables created in :func:`train_step`
      hook_function: One of the hook functions in the
      :class:`classy_vision.hooks.ClassyHookFunctions`
          enum.
docstr_tok: ["Helper","function","that","runs","a","hook","function","for","all","the",":","class",":","`","classy_vision.hooks.ClassyHook","`",".","Args",":","local_variables",":","Local","variables","created","in",":","func",":","`","train_step","`","hook_function",":","One","of","the","hook","functions","in","the",":","class",":","`","classy_vision.hooks.ClassyHookFunctions","`","enum","."]
code: def run_hooks(
      self, local_variables: Dict[str, Any], hook_function: str
  ) -> None:
      """
      Helper function that runs a hook function for all the
      :class:`classy_vision.hooks.ClassyHook`.
  
      Args:
          local_variables: Local variables created in :func:`train_step`
          hook_function: One of the hook functions in the
          :class:`classy_vision.hooks.ClassyHookFunctions`
              enum.
      """
      for hook in self.hooks:
          getattr(hook, hook_function)(self, local_variables)
  
file_path: ClassyVision/classy_vision/tasks/classy_task.py
imports: from abc import ABC, abstractmethod
  from typing import Any, Dict
  from classy_vision.generic.util import log_class_usage
label_desc: Use image node_id 15 for calling the ClassyTask obj's underlying member method code with example usage: obj.run_hooks(local_variables, hook_function) without return types