code: def _assert_torchscript_consistency(self, fn, tensors):
      ts_func = torch_script(fn)
  
      output = fn(tensors[:3], tensors[3:])
      ts_output = ts_func(tensors[:3], tensors[3:])
  
      self.assertEqual(ts_output, output)
  
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 1 for calling the Tacotron2LossTorchscriptTests obj's underlying member method code with example usage: obj._assert_torchscript_consistency(fn, tensors) without return types