code: def __init__(
      self,
      iterable,
      length=None,
      fill_char="#",
      empty_char=" ",
      bar_template="%(bar)s",
      info_sep="  ",
      show_eta=True,
      show_percent=None,
      show_pos=False,
      item_show_func=None,
      label=None,
      file=None,
      color=None,
      width=30,
  ):
      self.fill_char = fill_char
      self.empty_char = empty_char
      self.bar_template = bar_template
      self.info_sep = info_sep
      self.show_eta = show_eta
      self.show_percent = show_percent
      self.show_pos = show_pos
      self.item_show_func = item_show_func
      self.label = label or ""
      if file is None:
          file = _default_text_stdout()
      self.file = file
      self.color = color
      self.width = width
      self.autowidth = width == 0
  
      if length is None:
          length = _length_hint(iterable)
      if iterable is None:
          if length is None:
              raise TypeError("iterable or length is required")
          iterable = range_type(length)
      self.iter = iter(iterable)
      self.length = length
      self.length_known = length is not None
      self.pos = 0
      self.avg = []
      self.start = self.last_eta = time.time()
      self.eta_known = False
      self.finished = False
      self.max_width = None
      self.entered = False
      self.current_item = None
      self.is_hidden = not isatty(self.file)
      self._last_line = None
      self.short_limit = 0.5
  
imports: import contextlib
  import math
  import os
  import sys
  import time
  from ._compat import _default_text_stdout
  from ._compat import CYGWIN
  from ._compat import get_best_encoding
  from ._compat import int_types
  from ._compat import isatty
  from ._compat import open_stream
  from ._compat import range_type
  from ._compat import strip_ansi
  from ._compat import term_len
  from ._compat import WIN
  from .exceptions import ClickException
  from .utils import echo
label_desc: Use image node_id 1 to create a new ProgressBar object from inherited base classes: object with example: obj = ProgressBar(iterable, length, fill_char, empty_char, bar_template, info_sep, show_eta, show_percent, show_pos, item_show_func, label, file, color, width)