code: def _assert_consistency(self, func, inputs, shape_only=False):
      inputs_ = []
      for i in inputs:
          if torch.is_tensor(i):
              i = i.to(device=self.device, dtype=self.dtype)
          inputs_.append(i)
      ts_func = torch_script(func)
  
      torch.random.manual_seed(40)
      output = func(*inputs_)
  
      torch.random.manual_seed(40)
      ts_output = ts_func(*inputs_)
  
      if shape_only:
          ts_output = ts_output.shape
          output = output.shape
      self.assertEqual(ts_output, output)
  
file_path: audio/test/torchaudio_unittest/prototype/functional/torchscript_consistency_test_impl.py
imports: import unittest
  import torch
  import torchaudio.prototype.functional
  from parameterized import parameterized
  from torchaudio_unittest.common_utils import skipIfNoRIR, TestBaseMixin, torch_script
label_desc: Use image node_id 1 for calling the TorchScriptConsistencyCPUOnlyTestImpl obj's underlying member method code with example usage: obj._assert_consistency(func, inputs, shape_only) without return types