code: def test_patch(self):
      with config.patch(max_fusion_size=456):
          self.assertEqual(config.max_fusion_size, 456)
          with config.patch(max_fusion_size=789):
              self.assertEqual(config.max_fusion_size, 789)
          self.assertEqual(config.max_fusion_size, 456)
  
      with config.patch({"cpp.threads": 9000, "max_fusion_size": 9001}):
          self.assertEqual(config.cpp.threads, 9000)
          self.assertEqual(config.max_fusion_size, 9001)
          with config.patch("cpp.threads", 8999):
              self.assertEqual(config.cpp.threads, 8999)
          self.assertEqual(config.cpp.threads, 9000)
  
imports: import math
  import unittest
  import torch
  from torch._dynamo.test_case import run_tests, TestCase
  from torch._inductor import config
  from torch.testing._internal.inductor_utils import HAS_CPU
label_desc: Use image node_id 7 for calling the TestInductorConfig obj's underlying member method code with example usage: obj.test_patch() without return types