code: def test_set_progress_bar_enabled():
      disable_progress_bar()
      assert are_progress_bars_disabled()
  
      enable_progress_bar()
      assert not are_progress_bars_disabled()
  
file_path: H2O/h2o_flexgen/benchmark/third_party/transformers/tests/utils/test_logging.py
imports: import os
  import unittest
  import transformers.models.bart.tokenization_bart
  from huggingface_hub.utils import are_progress_bars_disabled
  from transformers import logging
  from transformers.testing_utils import CaptureLogger, mockenv, mockenv_context
  from transformers.utils.logging import disable_progress_bar, enable_progress_bar
label_desc: Use image node_id 1 for calling a global function with example usage: test_set_progress_bar_enabled() without return types