code: def test_simple_progress_without_total(self, mock_stderr) -> None:
      test_data = [1, 3, 5]
      desc = "test progress"
  
      def gen():
          for n in test_data:
              yield n
  
      progressed = progress(gen(), desc=desc, use_tqdm=False)
  
      assert list(progressed) == test_data
      assert mock_stderr.getvalue().startswith(f"\r{desc}: ")
      assert mock_stderr.getvalue().endswith(f"\r{desc}: ...\n")
  
file_path: captum/tests/utils/test_progress.py
imports: import io
  import unittest
  import unittest.mock
  from captum._utils.progress import NullProgress, progress
  from tests.helpers.basic import BaseTest
label_desc: Use image node_id 6 for calling the Test obj's underlying member method code with example usage: obj.test_simple_progress_without_total(mock_stderr) without return types