code: def test_eq(self):
      array1 = TensorField(numpy.asarray([1, 1, 1]))
      array2 = TensorField(numpy.asarray([[1, 1, 1], [1, 1, 1]]))
      array3 = TensorField(numpy.asarray([1, 1, 2]))
      array4 = TensorField(numpy.asarray([1, 1, 1]))
      assert array1 != array2
      assert array1 != array3
      assert array1 == array4
  
file_path: allennlp/tests/data/fields/tensor_field_test.py
imports: import numpy
  import torch
  from allennlp.common.testing.test_case import AllenNlpTestCase
  from allennlp.data.fields import TensorField, ListField
label_desc: Use image node_id 10 for calling the TestTensorField obj's underlying member method code with example usage: obj.test_eq() without return types