code: def __init__(self, optimizer, amp_handle, num_loss):
      self._optimizer = optimizer
      self._amp_handle = amp_handle
      self._num_loss = num_loss
      self._loss_idx = 0
      self._skip_next = [False] * num_loss
      self._loss_scaler = [
          LossScaler("dynamic") for _ in range(num_loss)
      ]
  
file_path: apex/apex/amp/opt.py
imports: import contextlib
  import warnings
  from .scaler import LossScaler, master_params
  from ._amp_state import maybe_print
  import numpy
label_desc: Use image node_id 1 to create a new OptimWrapper object from inherited base classes: object with example: obj = OptimWrapper(optimizer, amp_handle, num_loss)