code: def disable_tqdm():
      """monkey-patch tqdm to disable it within context"""
      try:
          from tqdm import tqdm
  
          _init = tqdm.__init__
          tqdm.__init__ = functools.partialmethod(
              tqdm.__init__, disable=True
          )
          yield
      except ImportError:
          yield
      else:
          tqdm.__init__ = _init
  
file_path: autogluon/timeseries/src/autogluon/timeseries/utils/warning_filters.py
imports: import contextlib
  import functools
  import io
  import logging
  import os
  import sys
  import warnings
  from statsmodels.tools.sm_exceptions import ConvergenceWarning, ValueWarning
label_desc: Use image node_id 3 for calling a global function with example usage: disable_tqdm() without return types