code: def _get_loss_from_grad(self, grads: Sequence[Floats2d]) -> float:
      loss = 0.0
      for grad in grads:
          loss += self.cc._get_loss_from_grad(grad)
      return loss
  
imports: from abc import abstractmethod
  from typing import Any, Dict, Generic, List, Optional, Sequence, Tuple, TypeVar, Union, cast
  from .config import registry
  from .types import Floats2d, Ints1d
  from .util import get_array_module, to_categorical
label_desc: Use image node_id 5 for calling the SequenceCategoricalCrossentropy obj's underlying member method code with example usage: obj._get_loss_from_grad(grads) and returns: loss