class_docstr: Implements test for Transforms that are performed for different devices
class_docstr_tok: ["Implements","test","for","Transforms","that","are","performed","for","different","devices"]
code: def _assert_consistency(self, transform, tensor, *args):
      tensor = tensor.to(device=self.device, dtype=self.dtype)
      transform = transform.to(device=self.device, dtype=self.dtype)
  
      ts_transform = torch_script(transform)
  
      output = transform(tensor, *args)
      ts_output = ts_transform(tensor, *args)
      self.assertEqual(ts_output, output)
  
imports: import torch
  import torchaudio.transforms
  from parameterized import parameterized
  from torchaudio_unittest import common_utils
  from torchaudio_unittest.common_utils import skipIfRocm, TestBaseMixin, torch_script
label_desc: Use image node_id 1 for calling the Transforms obj's underlying member method code with example usage: obj._assert_consistency(transform, tensor) without return types