code: def _log_suppressor():
      user_transformer_log_level = transformers_logging.get_verbosity()
      user_logger_level = logging.getLogger(
          "transformers"
      ).getEffectiveLevel()
      is_progress_bar_enabled = (
          transformers_logging.is_progress_bar_enabled()
      )
  
      transformers_logging.set_verbosity_error()
      transformers_logging.disable_progress_bar()
      logging.getLogger("transformers").setLevel(50)
  
      with warnings.catch_warnings():
          yield
  
      transformers_logging.set_verbosity(user_transformer_log_level)
      logging.getLogger("transformers").setLevel(user_logger_level)
      if is_progress_bar_enabled:
          transformers_logging.enable_progress_bar()
  
file_path: deepchecks/deepchecks/nlp/utils/text_properties_models.py
imports: import logging
  import pathlib
  import warnings
  from contextlib import contextmanager
  from functools import lru_cache
  from importlib import import_module
  from typing import Optional, Union
  import requests
  from nltk import corpus
  from transformers.utils import logging
label_desc: Use image node_id 4 for calling a global function with example usage: _log_suppressor() without return types