code: def disable_stdout():
      save_stdout = sys.stdout
      sys.stdout = io.StringIO()
      yield
      sys.stdout = save_stdout
  
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 4 for calling a global function with example usage: disable_stdout() without return types