docstr: Validate the torchscript consistency of Tacotron2Loss.
docstr_tok: ["Validate","the","torchscript","consistency","of","Tacotron2Loss","."]
code: def test_tacotron2_loss_torchscript_consistency(self):
      """Validate the torchscript consistency of Tacotron2Loss."""
  
      loss_fn = Tacotron2Loss()
      self._assert_torchscript_consistency(loss_fn, self._get_inputs())
  
file_path: audio/test/torchaudio_unittest/example/tacotron2/tacotron2_loss_impl.py
imports: import torch
  from pipeline_tacotron2.loss import Tacotron2Loss
  from torch.autograd import gradcheck, gradgradcheck
  from torchaudio_unittest.common_utils import TestBaseMixin, torch_script
label_desc: Use image node_id 2 for calling the Tacotron2LossTorchscriptTests obj's underlying member method code with example usage: obj.test_tacotron2_loss_torchscript_consistency() without return types