code: def test_cat(self) -> None:
      tensor_1 = torch.tensor([2, 3], dtype=torch.long)
      tensor_2 = torch.tensor([0, 1], dtype=torch.long)
      tensor_sum = torch.tensor([2, 3, 0, 1], dtype=torch.long)
      tensor_list_1 = tensor_list_from_lists([[3, 4], [0]])
      tensor_list_2 = tensor_list_from_lists([[1, 2, 0], []])
      tensor_list_sum = tensor_list_from_lists(
          [[3, 4], [0], [1, 2, 0], []]
      )
      self.assertEqual(
          EntityList.cat(
              [
                  EntityList(tensor_1, tensor_list_1),
                  EntityList(tensor_2, tensor_list_2),
              ]
          ),
          EntityList(tensor_sum, tensor_list_sum),
      )
  
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 4 for calling the TestEntityList obj's underlying member method code with example usage: obj.test_cat() without return types