code: def _set_compilation_env():
      _old_is_tracing = torch.fx._symbolic_trace._is_fx_tracing_flag
      try:
          # We need to turn off the is_fx_tracing_flag. Remove this flag check from dyanmo
          # once we are confident fx tracing works with dynamo.
          torch.fx._symbolic_trace._is_fx_tracing_flag = False
          yield
      finally:
          torch.fx._symbolic_trace._is_fx_tracing_flag = _old_is_tracing
  
file_path: pytorch/torch/_higher_order_ops/strict_mode.py
imports: from contextlib import contextmanager
  import torch
  import torch._subclasses.functional_tensor
  import torch.utils._pytree
  from torch._C import DispatchKey
  from torch._functorch.utils import exposed_in
  from torch._higher_order_ops.utils import autograd_not_implemented
  from torch._ops import HigherOrderOperator
  from torch._subclasses.fake_tensor import FakeTensorMode
  from torch.fx.experimental.proxy_tensor import disable_proxy_modes_tracing, make_fx, ProxyTorchDispatchMode, track_tensor_tree
  from torch.utils._python_dispatch import _get_current_dispatch_mode
label_desc: Use image node_id 1 for calling a global function with example usage: _set_compilation_env() without return types