code: def test_equal(self) -> None:
      el = EntityList(
          torch.tensor([3, 4], dtype=torch.long),
          tensor_list_from_lists([[], [2, 1, 0]]),
      )
      self.assertEqual(el, el)
      self.assertNotEqual(
          el,
          EntityList(
              torch.tensor([4, 2], dtype=torch.long),
              tensor_list_from_lists([[], [2, 1, 0]]),
          ),
      )
      self.assertNotEqual(
          el,
          EntityList(
              torch.tensor([3, 4], dtype=torch.long),
              tensor_list_from_lists([[3], [2, 0]]),
          ),
      )
  
file_path: PyTorch-BigGraph/test/test_entitylist.py
imports: from typing import Sequence
  from unittest import main, TestCase
  import torch
  from torchbiggraph.entitylist import EntityList
  from torchbiggraph.tensorlist import TensorList
label_desc: Use image node_id 8 for calling the TestEntityList obj's underlying member method code with example usage: obj.test_equal() without return types