class_docstr: Initialize progress bars using :class:`~tqdm.tqdm`.
  
  :param int warmup_steps: Number of warmup steps.
  :param int num_samples: Number of MCMC samples.
  :param int min_width: Minimum column width of the bar.
  :param int max_width: Maximum column width of the bar.
  :param bool disable: Disable progress bar.
  :param int num_bars: Number of progress bars to initialize.
      If multiple bars are initialized, they need to be separately
      updated via the ``pos`` kwarg.
class_docstr_tok: ["Initialize","progress","bars","using",":","class",":","`","~tqdm.tqdm","`",".",":","param","int","warmup_steps",":","Number","of","warmup","steps",".",":","param","int","num_samples",":","Number","of","MCMC","samples",".",":","param","int","min_width",":","Minimum","column","width","of","the","bar",".",":","param","int","max_width",":","Maximum","column","width","of","the","bar",".",":","param","bool","disable",":","Disable","progress","bar",".",":","param","int","num_bars",":","Number","of","progress","bars","to","initialize",".","If","multiple","bars","are","initialized",",","they","need","to","be","separately","updated","via","the","``","pos","``","kwarg","."]
code: def __init__(
      self,
      warmup_steps,
      num_samples,
      min_width=80,
      max_width=120,
      disable=False,
      num_bars=1,
  ):
      total_steps = warmup_steps + num_samples
      # Disable progress bar in "CI"
      # (see https://github.com/travis-ci/travis-ci/issues/1337).
      disable = (
          disable
          or "CI" in os.environ
          or "PYTEST_XDIST_WORKER" in os.environ
      )
      bar_format = "{l_bar}{bar}| {n_fmt}/{total_fmt} [{elapsed}, {rate_fmt}{postfix}]"
      pbar_cls = tqdm_nb if num_bars > 1 and ipython_env else tqdm
      self.progress_bars = []
      for i in range(num_bars):
          description = (
              "Warmup" if num_bars == 1 else "Warmup [{}]".format(i + 1)
          )
          pbar = pbar_cls(
              total=total_steps,
              desc=description,
              bar_format=bar_format,
              position=i,
              file=sys.stderr,
              disable=disable,
          )
          # Assume reasonable values when terminal width not available
          if getattr(pbar, "ncols", None) is not None:
              pbar.ncols = max(min_width, pbar.ncols)
              pbar.ncols = min(max_width, pbar.ncols)
          self.progress_bars.append(pbar)
      self.disable = disable
      self.ipython_env = ipython_env
  
imports: import json
  import logging
  import os
  import sys
  from collections import OrderedDict
  from tqdm import tqdm
  from tqdm.auto import tqdm
label_desc: Use image node_id 1 to create a new ProgressBar object  with example: obj = ProgressBar(warmup_steps, num_samples, min_width, max_width, disable, num_bars)