code: def __init__(
      self, loss_scale="dynamic", enable_caching=True, verbose=False
  ):
      self._enable_caching = enable_caching
      self._verbose = verbose
      self._cache = dict()
      self._default_scaler = LossScaler(loss_scale)
      self._is_active = True
      self._all_wrappers = []
  
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 1 to create a new AmpHandle object from inherited base classes: object with example: obj = AmpHandle(loss_scale, enable_caching, verbose)