code: def disable_casts():
      _amp_state.handle._is_active = False
      yield
      _amp_state.handle._is_active = True
  
imports: import contextlib
  import warnings
  import sys
  import torch
  from .None import utils
  from .opt import OptimWrapper
  from .scaler import LossScaler
  from ._amp_state import _amp_state, master_params, maybe_print
label_desc: Use image node_id 2 for calling a global function with example usage: disable_casts() without return types