code: def assert_list_of_tensors_equal(unittest_obj, input, other):
      import torch
  
      tensor_pairs = zip(
          [item for item in input], [item for item in other]
      )
      is_equal = [
          torch.equal(first, second) for first, second in tensor_pairs
      ]
      unittest_obj.assertTrue(np.alltrue(is_equal))
  
file_path: small-text/tests/utils/testing.py
imports: import numpy
  from scipy.sparse import csr_matrix
  from numpy.testing import assert_array_equal, assert_raises
label_desc: Use image node_id 5 for calling a global function with example usage: assert_list_of_tensors_equal(unittest_obj, input, other) without return types