class_docstr: Mixin to provide easy access assert torchscript consistency
code: def _assert_torchscript_consistency(self, model, tensors):
      ts_func = torch_script(model)
  
      torch.random.manual_seed(40)
      output = model(*tensors)
  
      torch.random.manual_seed(40)
      ts_output = ts_func(*tensors)
  
      self.assertEqual(ts_output, output)
  
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 1 for calling the TorchscriptConsistencyMixin obj's underlying member method code with example usage: obj._assert_torchscript_consistency(model, tensors) without return types