code: def test_simple_progress_update_manually(self, mock_stderr) -> None:
      desc = "test progress"
  
      p = progress(total=5, desc=desc, use_tqdm=False)
      p.update(0)
      p.update(2)
      p.update(2)
      p.update(1)
      p.close()
      assert mock_stderr.getvalue().startswith(f"\r{desc}: 0% 0/5")
      assert mock_stderr.getvalue().endswith(f"\r{desc}: 100% 5/5\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 7 for calling the Test obj's underlying member method code with example usage: obj.test_simple_progress_update_manually(mock_stderr) without return types