code: def float_function(fn):
      from apex import deprecated_warning
  
      deprecated_warning(
          "apex.amp is deprecated and will be removed by the end of February 2023. Use [PyTorch AMP](https://pytorch.org/docs/stable/amp.html)"
      )
      wrap_fn = functools.partial(
          wrap.make_cast_wrapper, try_caching=False
      )
      return _decorator_helper(fn, utils.maybe_float, wrap_fn)
  
file_path: apex/apex/amp/amp.py
imports: import functools
  import itertools
  import torch
  from .None import compat, rnn_compat, utils, wrap
  from .handle import AmpHandle, NoOpHandle
  from .lists import functional_overrides, torch_overrides, tensor_overrides
  from ._amp_state import _amp_state
  from .frontend import *
label_desc: Use image node_id 3 for calling a global function with example usage: float_function(fn) and returns: _decorator_helper