class_docstr: Displays a progress bar.
      It refers to https://github.com/keras-team/keras/blob/keras-2/keras/utils/generic_utils.py
  
  Args:
      target (int): Total number of steps expected, None if unknown.
      width (int): Progress bar width on screen.
      verbose (int): Verbosity mode, 0 (silent), 1 (verbose), 2 (semi-verbose)
      stateful_metrics (list|tuple): Iterable of string names of metrics that should *not* be
          averaged over time. Metrics in this list will be displayed as-is. All
          others will be averaged by the progbar before display.
      interval (float): Minimum visual progress update interval (in seconds).
      unit_name (str): Display name for step counts (usually "step" or "sample").
code: def __init__(
      self,
      target,
      width=30,
      verbose=1,
      interval=0.05,
      stateful_metrics=None,
      unit_name="step",
  ):
      self.target = target
      self.width = width
      self.verbose = verbose
      self.interval = interval
      self.unit_name = unit_name
      if stateful_metrics:
          self.stateful_metrics = set(stateful_metrics)
      else:
          self.stateful_metrics = set()
  
      self._dynamic_display = (
          (hasattr(sys.stderr, "isatty") and sys.stderr.isatty())
          or "ipykernel" in sys.modules
          or "posix" in sys.modules
          or "PYCHARM_HOSTED" in os.environ
      )
      self._total_width = 0
      self._seen_so_far = 0
      # We use a dict + list to avoid garbage collection
      # issues found in OrderedDict
      self._values = {}
      self._values_order = []
      self._start = time.time()
      self._last_update = 0
  
file_path: PaddleSeg/contrib/MedicalSeg/medicalseg/utils/progbar.py
imports: import os
  import sys
  import time
  import numpy
label_desc: Use image node_id 1 to create a new Progbar object from inherited base classes: object with example: obj = Progbar(target, width, verbose, interval, stateful_metrics, unit_name)