docstr: Initializes tracking object.
docstr_tok: ["Initializes","tracking","object","."]
code: def __init__(
      self,
      iterations,
      track_time,
      stream,
      title,
      monitor,
      update_interval=None,
  ):
      """Initializes tracking object."""
      self.cnt = 0
      self.title = title
      self.max_iter = float(iterations)  # to support Python 2.x
      self.track = track_time
      self.start = time.time()
      self.end = None
      self.item_id = None
      self.eta = None
      self.total_time = 0.0
      self.last_time = self.start
      self.monitor = monitor
      self.stream = stream
      self.active = True
      self._stream_out = self._no_stream
      self._stream_flush = self._no_stream
      self._check_stream()
      self._print_title()
      self.update_interval = update_interval
      self._cached_output = ""
  
      sys.stdout.flush()
      sys.stderr.flush()
  
      if monitor:
          if not psutil_import:
              raise ValueError(
                  "psutil package is required when using"
                  " the `monitor` option."
              )
          else:
              self.process = psutil.Process()
      if self.track:
          self.eta = 1
  
imports: import os
  import sys
  import time
  from io import UnsupportedOperation
label_desc: Use image node_id 1 to create a new Prog object  with example: obj = Prog(iterations, track_time, stream, title, monitor, update_interval)