code: def disable_casts(mod, fn, handle):
      if not utils.has_func(mod, fn):
          return
  
      orig_fn = utils.get_func(mod, fn)
  
      @functools.wraps(orig_fn)
      def wrapper(*args, **kwargs):
          with handle._disable_casts():
              return orig_fn(*args, **kwargs)
  
      utils.set_func_save(handle, mod, fn, wrapper)
  
file_path: apex/apex/amp/wrap.py
imports: from .None import compat
  from .None import utils
  from ._amp_state import _amp_state
  from .None import rnn_compat
  import functools
  import torch
label_desc: Use image node_id 11 for calling a global function with example usage: disable_casts(mod, fn, handle) and returns: orig_fn