def METHOD_NAME(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)  # size in B