class_docstr: A Loss module that computes loss for Tacotron2
code: def output_types(self):
      return {
          "loss": NeuralType(elements_type=LossType()),
          "gate_target": NeuralType(
              ("B", "T"), LogitsType()
          ),  # Used for evaluation
      }
  
file_path: NeMo/nemo/collections/tts/losses/tacotron2loss.py
imports: import torch
  from nemo.collections.tts.parts.utils.helpers import get_mask_from_lengths
  from nemo.core.classes import Loss, typecheck
  from nemo.core.neural_types.elements import LengthsType, LogitsType, LossType, MelSpectrogramType
  from nemo.core.neural_types.neural_type import NeuralType
label_desc: Use image node_id 2 for calling the Tacotron2Loss obj's underlying member method code with example usage: obj.output_types() and returns: dict