docstr: Simple progress output used when tqdm is unavailable.
  Same as tqdm, output to stderr channel.
  If you want to do nested Progressbars with simple progress
  the parent progress bar should be used as a context
  (i.e. with statement) and the nested progress bar should be
  created inside this context.
docstr_tok: ["Simple","progress","output","used","when","tqdm","is","unavailable",".","Same","as","tqdm",",","output","to","stderr","channel",".","If","you","want","to","do","nested","Progressbars","with","simple","progress","the","parent","progress","bar","should","be","used","as","a","context","(","i.e",".","with","statement",")","and","the","nested","progress","bar","should","be","created","inside","this","context","."]
code: def __init__(
      self,
      iterable: Iterable = None,
      desc: str = None,
      total: int = None,
      file: TextIO = None,
      mininterval: float = 0.5,
  ) -> None:
      """
      Simple progress output used when tqdm is unavailable.
      Same as tqdm, output to stderr channel.
      If you want to do nested Progressbars with simple progress
      the parent progress bar should be used as a context
      (i.e. with statement) and the nested progress bar should be
      created inside this context.
      """
      self.cur = 0
      self.iterable = iterable
      self.total = total
      if total is None and hasattr(iterable, "__len__"):
          self.total = len(cast(Sized, iterable))
  
      self.desc = desc
  
      file = DisableErrorIOWrapper(file if file else sys.stderr)
      cast(TextIO, file)
      self.file = file
  
      self.mininterval = mininterval
      self.last_print_t = 0.0
      self.closed = False
      self._is_parent = False
  
imports: import sys
  import warnings
  from time import time
  from typing import cast, Iterable, Sized, TextIO
  from captum._utils.typing import Literal
label_desc: Use image node_id 1 to create a new SimpleProgress object  with example: obj = SimpleProgress(iterable, desc, total, file, mininterval)