code: def _run1(self, r, t, x, g, v, mode="standard", norm_coefficient=None, alpha=None, beta=None):  # type: ignore
      if mode == "standard":
          x_new, v_new = _apply_momentum(
              r, t, x, g, v, norm_coefficient, alpha, beta
          )
      else:
          x_new, v_new = _apply_nesterov(
              r, t, x, g, v, norm_coefficient, alpha, beta
          )
      return x_new, v_new
  
imports: from onnx.reference.ops.aionnx_preview_training._op_run_training import OpRunTraining
label_desc: Use image node_id 2 for calling the Momentum obj's underlying member method code with example usage: obj._run1(r, t, x, g, v, mode, norm_coefficient, alpha, beta) and returns: x_new,  v_new