code: def assertTensorEqual(self, t1, t2):
      self.assertEqual(t1.size(), t2.size(), "size mismatch")
      self.assertEqual(t1.ne(t2).long().sum(), 0)
  
file_path: fairseq/tests/test_backtranslation_dataset.py
imports: import unittest
  import tests.utils
  import torch
  from fairseq.data import BacktranslationDataset, LanguagePairDataset, TransformEosDataset
  from fairseq.sequence_generator import SequenceGenerator
label_desc: Use image node_id 6 for calling the TestBacktranslationDataset obj's underlying member method code with example usage: obj.assertTensorEqual(t1, t2) without return types