class_docstr: implements start and end loss of a span e.g. for Question Answering.
docstr: Returns definitions of module output ports.
          
code: def output_types(self):
      """Returns definitions of module output ports."""
      return {
          "loss": NeuralType(elements_type=LossType()),
          "start_logits": NeuralType(("B", "T"), LogitsType()),
          "end_logits": NeuralType(("B", "T"), LogitsType()),
      }
  
file_path: NeMo/nemo/collections/common/losses/spanning_loss.py
imports: from torch import nn
  from nemo.core.classes import Loss, typecheck
  from nemo.core.neural_types import ChannelType, LogitsType, LossType, NeuralType
label_desc: Use image node_id 2 for calling the SpanningLoss obj's underlying member method code with example usage: obj.output_types() and returns: dict