class_docstr: Generate a command-line progressbar.
  
  Parameters
  ----------
  iterable : iterable | int | None
      The iterable to use. Can also be an int for backward compatibility
      (acts like ``max_value``).
  initial_value : int
      Initial value of process, useful when resuming process from a specific
      value, defaults to 0.
  mesg : str
      Message to include at end of progress bar.
  max_total_width : int | str
      Maximum total message width. Can use "auto" (default) to try to set
      a sane value based on the current terminal width.
  max_value : int | None
      The max value. If None, the length of ``iterable`` will be used.
  which_tqdm : str | None
      Which tqdm module to use. Can be "tqdm", "tqdm.notebook", or "off".
      Defaults to ``None``, which uses the value of the MNE_TQDM environment
      variable, or ``"tqdm.auto"`` if that is not set.
  **kwargs : dict
      Additional keyword arguments for tqdm.
class_docstr_tok: ["Generate","a","command-line","progressbar",".","Parameters","--","--","--","--","--","iterable",":","iterable","|","int","|","None","The","iterable","to","use",".","Can","also","be","an","int","for","backward","compatibility","(","acts","like","``","max_value","``",")",".","initial_value",":","int","Initial","value","of","process",",","useful","when","resuming","process","from","a","specific","value",",","defaults","to","0.","mesg",":","str","Message","to","include","at","end","of","progress","bar",".","max_total_width",":","int","|","str","Maximum","total","message","width",".","Can","use","``","auto","''","(","default",")","to","try","to","set","a","sane","value","based","on","the","current","terminal","width",".","max_value",":","int","|","None","The","max","value",".","If","None",",","the","length","of","``","iterable","``","will","be","used",".","which_tqdm",":","str","|","None","Which","tqdm","module","to","use",".","Can","be","``","tqdm","''",",","``","tqdm.notebook","''",",","or","``","off","''",".","Defaults","to","``","None","``",",","which","uses","the","value","of","the","MNE_TQDM","environment","variable",",","or","``","``","tqdm.auto","''","``","if","that","is","not","set",".","*","*","kwargs",":","dict","Additional","keyword","arguments","for","tqdm","."]
code: def __exit__(self, type_, value, traceback):  # noqa: D105
      # Restore exit behavior for our one from the main thread
      self.update(self._mmap.sum())
      self._tqdm.close()
      self._thread._mne_run = False
      self._thread.join()
      self._mmap = None
      if op.isfile(self._mmap_fname):
          os.remove(self._mmap_fname)
  
imports: import logging
  import os
  import os.path
  import tempfile
  import time
  from collections.abc import Iterable
  from threading import Thread
  import numpy
  from ._logging import logger
  from .check import _check_option
  from .config import get_config
label_desc: Use image node_id 7 for calling the ProgressBar obj's underlying member method code with example usage: obj.__exit__(type_, value, traceback) without return types