code: def get_progress_bar(display, total, **kwargs):
      """Get a progress bar interface with given properties
  
      If the tqdm library is not installed, this will always return a "progress
      bar" that does nothing.
  
      Args:
          display (bool or str): Should the bar actually show the progress? Or a
                                 string to indicate which tqdm bar to use.
          total (int): The total size of the progress bar.
          kwargs (dict): Optional keyword arguments to be passed to the tqdm call.
  
      """
      if display:
          if tqdm is None:
              logger.warning(
                  "You must install the tqdm library to use progress "
                  "indicators with emcee"
              )
              return _NoOpPBar()
          else:
              if display is True:
                  return tqdm.tqdm(total=total, **kwargs)
              else:
                  return getattr(tqdm, "tqdm_" + display)(
                      total=total, **kwargs
                  )
  
      return _NoOpPBar()
  
file_path: emcee/src/emcee/pbar.py
imports: import logging
label_desc: Use image node_id 1 for calling a global function with example usage: get_progress_bar(display, total) and returns: _NoOpPBar, _NoOpPBar, tqdm, getattr