code: def get_test_cases(directory):
      for root, _, files in os.walk(directory):
          for fname in files:
              if fname.startswith("disabled_"):
                  continue
              if os.path.splitext(fname)[-1] == ".py":
                  fullpath = os.path.join(root, fname)
                  yield fullpath
  
imports: import itertools
  import os
  import re
  import shutil
  import unittest
  from collections import defaultdict
  from threading import Lock
  from typing import Dict, IO, List, Optional
  from torch.testing._internal.common_utils import instantiate_parametrized_tests, parametrize, run_tests, TestCase
label_desc: Use image node_id 4 for calling a global function with example usage: get_test_cases(directory) without return types