class_docstr: Displays a progress bar to show progress in processing batches.
docstr: Clear the progress bar at the end of the phase.
code: def on_phase_end(self, task) -> None:
      """Clear the progress bar at the end of the phase."""
      if is_primary() and self.progress_bar is not None:
          self.progress_bar.finish()
  
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 4 for calling the ProgressBarHook obj's underlying member method code with example usage: obj.on_phase_end(task) without return types