class_docstr: Displays a progress bar to show progress in processing batches.
docstr: The constructor method of ProgressBarHook.
code: def __init__(self) -> None:
      """The constructor method of ProgressBarHook."""
      super().__init__()
      self.progress_bar: Optional[progressbar.ProgressBar] = None
      self.bar_size: int = 0
      self.batches: int = 0
  
file_path: ClassyVision/classy_vision/hooks/progress_bar_hook.py
imports: from typing import Any, Dict, Optional
  from classy_vision.generic.distributed_util import is_primary
  from classy_vision.hooks import register_hook
  from classy_vision.hooks.classy_hook import ClassyHook
label_desc: Use image node_id 1 to create a new ProgressBarHook object from inherited base classes: ClassyHook with example: obj = ProgressBarHook()