code: def test_tqdm_stream_file(self) -> None:
      with SoftTemporaryDirectory() as tmpdir:
          filepath = Path(tmpdir) / "config.json"
          with filepath.open("w") as f:
              f.write("#" * 1000)
  
          with tqdm_stream_file(filepath) as f:
              while True:
                  data = f.read(100)
                  if not data:
                      break
                  time.sleep(
                      0.001
                  )  # Simulate a delay between each chunk
  
          captured = self.capsys.readouterr()
          self.assertEqual(captured.out, "")
          self.assertIn(
              "config.json: 100%", captured.err
          )  # log file name
          self.assertIn("|█████████", captured.err)  # tqdm bar
          self.assertIn("1.00k/1.00k", captured.err)
  
file_path: hub-client/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 11 for calling the TestTqdmUtils obj's underlying member method code with example usage: obj.test_tqdm_stream_file() without return types