code: def test_nested_simple_progress(self, mock_stderr) -> None:
      parent_data = ["x", "y", "z"]
      test_data = [1, 2, 3]
      with progress(
          parent_data,
          desc="parent progress",
          use_tqdm=False,
          mininterval=0.0,
      ) as parent:
          for item in parent:
              for _ in progress(
                  test_data,
                  desc=f"test progress {item}",
                  use_tqdm=False,
              ):
                  pass
  
      output = mock_stderr.getvalue()
      self.assertEqual(
          output.count("parent progress:"),
          5,
          "5 'parent' progress bar expected",
      )
      for item in parent_data:
          self.assertIn(f"test progress {item}:", output)
  
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 3 for calling the Test obj's underlying member method code with example usage: obj.test_nested_simple_progress(mock_stderr) without return types