code: def make_dynamic_cls(cls):
      suffix = "_dynamic_shapes"
  
      cls_prefix = "DynamicShapes"
  
      test_class = make_test_cls_with_patches(
          cls,
          cls_prefix,
          suffix,
          (config, "assume_static_by_default", False),
          (config, "specialize_int", False),
          (fx_config, "translation_validation", TEST_Z3),
          (fx_config, "check_shape_env_recorded_events", True),
          (fx_config, "validate_shape_env_verison_key", True),
          xfail_prop="_expected_failure_dynamic",
      )
  
      test_classes[test_class.__name__] = test_class
      # REMOVING THIS LINE WILL STOP TESTS FROM RUNNING
      globals()[test_class.__name__] = test_class
      test_class.__module__ = __name__
      return test_class
  
imports: import unittest
  import warnings
  from torch._dynamo import config
  from torch._dynamo.testing import make_test_cls_with_patches
  from torch.fx.experimental import _config
  from torch.testing._internal.common_utils import TEST_Z3
label_desc: Use image node_id 1 for calling a global function with example usage: make_dynamic_cls(cls) and returns: test_class