docstr: Test helpers cannot enable/disable progress bars when
  `HF_HUB_DISABLE_PROGRESS_BARS` is set.
docstr_tok: ["Test","helpers","can","not","enable\/disable","progress","bars","when","`","HF_HUB_DISABLE_PROGRESS_BARS","`","is","set","."]
code: def test_cannot_disable_tqdm_when_env_variable_is_set(self) -> None:
      """
      Test helpers cannot enable/disable progress bars when
      `HF_HUB_DISABLE_PROGRESS_BARS` is set.
      """
      enable_progress_bars()
      self.assertFalse(are_progress_bars_disabled())
  
      with self.assertWarns(UserWarning):
          disable_progress_bars()
      self.assertFalse(are_progress_bars_disabled())
  
file_path: huggingface_hub/tests/test_utils_tqdm.py
imports: import time
  import unittest
  from pathlib import Path
  from unittest.mock import patch
  import pytest
  from pytest import CaptureFixture
  from huggingface_hub.utils import SoftTemporaryDirectory, are_progress_bars_disabled, disable_progress_bars, enable_progress_bars, tqdm, tqdm_stream_file
label_desc: Use image node_id 6 for calling the TestTqdmUtils obj's underlying member method code with example usage: obj.test_cannot_disable_tqdm_when_env_variable_is_set() without return types