class_docstr: A [`TrainerCallback`] that displays the progress of training or evaluation, optimized for Jupyter Notebooks or
  Google colab.
code: def on_predict(self, args, state, control, **kwargs):
      if self.prediction_bar is not None:
          self.prediction_bar.close()
      self.prediction_bar = None
  
imports: import re
  import time
  from typing import Optional
  import IPython.display
  from ..trainer_callback import TrainerCallback
  from ..trainer_utils import IntervalStrategy, has_length
label_desc: Use image node_id 5 for calling the NotebookProgressCallback obj's underlying member method code with example usage: obj.on_predict(args, state, control) without return types