code: def progress_bar_wrapper(iterable, **kwargs):
      ''' Wrapper that applies tqdm progress bar conditional on config settings.
      '''
      return tqdm(iterable, **kwargs) if (config.get_option('progress_bar')
          and not isinstance(iterable, tqdm)) else iterablf progress_bar_wrapper(iterable, **kwargs):
      ''' Wrapper that applies tqdm progress bar conditional on config settings.
      '''
      return tqdm(iterable, **kwargs) if (config.get_option('progress_bar')
          and not isinstance(iterable, tqdm)) else iterable
docs: Wrapper that applies tqdm progress bar conditional on config settings.