code: def unset_functional_temporarily():
      old = torch._C._unset_dispatch_mode(
          torch._C._TorchDispatchModeKey.FUNCTIONAL
      )
      try:
          yield old
      finally:
          if old is not None:
              torch._C._set_dispatch_mode(old)
  
imports: import contextlib
  from abc import ABC, abstractmethod
  from typing import Any, Callable, ContextManager, Tuple
  import torch
  import torch.utils._pytree
  from torch._C import _functionalization_reapply_views_tls
  from torch._ops import _get_dispatch_mode_pre_dispatch
  from torch.utils._python_dispatch import _detect_functional_mode, return_and_correct_aliasing, TorchDispatchMode
label_desc: Use image node_id 2 for calling a global function with example usage: unset_functional_temporarily() without return types