Summary: Two dynamo codegen bugs cause tests in TestTorchFunctionMode to leak global
torch function state, silently poisoning later tests in the same process:
test_factory_override leaks a TorchFunctionMode onto the C mode stack
when a with TorchFunctionMode() spans a __build_class__ graph break.
Filed as #182317.
test_disable_enable_subclass...
🛡️ VERIFIED CYBER INTELLIGENCE ID: #3459877