class_docstr: Initializes a progress bar object that allows visuzalization
  of an iterational computation in the standard output screen.
  
  Parameters
  ----------
  iterations : `int`
      Number of iterations for the iterative computation.
  track_time : `bool` (default: `True`)
      Prints elapsed time when loop has finished.
  width : `int` (default: 30)
      Sets the progress bar width in characters.
  stream : `int` (default: 2).
      Setting the output stream.
      Takes `1` for stdout, `2` for stderr, or a custom stream object
  title : `str` (default:  `''`)
      Setting a title for the progress bar.
  monitor : `bool` (default: False)
      Monitors CPU and memory usage if `True` (requires `psutil` package).
  update_interval : float or int (default: None)
      The update_interval in seconds controls how often the progress
      is flushed to the screen.
      Automatic mode if update_interval=None.
code: def __init__(
      self,
      iterations,
      track_time=True,
      width=30,
      bar_char="#",
      stream=2,
      title="",
      monitor=False,
      update_interval=None,
  ):
      Prog.__init__(
          self,
          iterations,
          track_time,
          stream,
          title,
          monitor,
          update_interval,
      )
      self.bar_width = width
      self._adjust_width()
      self.bar_char = bar_char
      self.last_progress = 0
  
      if monitor:
          try:
              self.process.cpu_percent()
              self.process.memory_percent()
          except AttributeError:  # old version of psutil
              self.process.get_cpu_percent()
              self.process.get_memory_percent()
      if self.item_id:
          self._cache_item_id()
  
file_path: mlxtend/mlxtend/externals/pyprind/progbar.py
imports: import time
  from math import floor
  from .prog_class import Prog
label_desc: Use image node_id 1 to create a new ProgBar object from inherited base classes: Prog with example: obj = ProgBar(iterations, track_time, width, bar_char, stream, title, monitor, update_interval)