code: def test_nested_progress_tqdm(self, mock_stderr) -> None:
      try:
          import tqdm  # noqa: F401
      except ImportError:
          raise unittest.SkipTest(
              "Skipping tqdm test, tqdm not available."
          )
  
      parent_data = ["x", "y", "z"]
      test_data = [1, 2, 3]
      with progress(parent_data, desc="parent progress") as parent:
          for item in parent:
              for _ in progress(
                  test_data, desc=f"test progress {item}"
              ):
                  pass
      output = mock_stderr.getvalue()
      self.assertIn("parent progress:", output)
      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 2 for calling the Test obj's underlying member method code with example usage: obj.test_nested_progress_tqdm(mock_stderr) without return types