code: def autograd_fallback_mode(mode):
      prev = torch._C._get_autograd_fallback_mode()
      try:
          torch._C._set_autograd_fallback_mode(mode)
          yield
      finally:
          torch._C._set_autograd_fallback_mode(prev)
  
imports: import contextlib
  import warnings
  import numpy
  import torch
  from torch.library import Library
  from torch.testing._internal.common_utils import instantiate_parametrized_tests, parametrize, run_tests, TestCase
label_desc: Use image node_id 1 for calling a global function with example usage: autograd_fallback_mode(mode) without return types