code: def _list_cases(suite):
      for test in suite:
          if isinstance(test, unittest.loader._FailedTest):
              continue
          if isinstance(test, unittest.TestSuite):
              _list_cases(test)
          elif isinstance(test, unittest.TestCase):
              if match_test(test):
                  print(test.id())
  
file_path: cpython/Lib/test/libregrtest/findtests.py
imports: import os
  import sys
  import unittest
  from test import support
  from .filter import match_test, set_match_tests
  from .utils import StrPath, TestName, TestTuple, TestList, TestFilter, abs_module_name, count, printlist
label_desc: Use image node_id 4 for calling a global function with example usage: _list_cases(suite) without return types