docstr: Validate the torchscript consistency of a Tacotron2.
code: def test_tacotron2_torchscript_consistency(self, n_batch):
      r"""Validate the torchscript consistency of a Tacotron2."""
      n_mels = 80
      max_mel_specgram_length = 300
      max_text_length = 100
  
      model = _get_tacotron2_model(n_mels).to(self.device).eval()
      inputs = self._get_inputs(
          n_mels, n_batch, max_mel_specgram_length, max_text_length
      )
  
      self._assert_torchscript_consistency(model, inputs)
  
imports: from typing import Tuple
  import torch
  from parameterized import parameterized
  from torch import Tensor
  from torchaudio.models import Tacotron2
  from torchaudio.models.tacotron2 import _Decoder, _Encoder
  from torchaudio_unittest.common_utils import skipIfPy310, TestBaseMixin, torch_script
label_desc: Use image node_id 2 for calling the Tacotron2Tests obj's underlying member method code with example usage: obj.test_tacotron2_torchscript_consistency(n_batch) without return types