code: def set_ctx_getter(ctx_getter):
      global global_ctx_getter
      prev = global_ctx_getter
      try:
          global_ctx_getter = ctx_getter
          yield
      finally:
          global_ctx_getter = prev
  
file_path: pytorch/torch/_library/abstract_impl.py
imports: import contextlib
  import functools
  import warnings
  from typing import Callable, Optional
  import torch
  from torch._library.utils import Kernel, RegistrationHandle
label_desc: Use image node_id 3 for calling a global function with example usage: set_ctx_getter(ctx_getter) without return types