code: def test_tensor_list(self) -> None:
      with tempfile.NamedTemporaryFile() as bf:
          with h5py.File(bf.name, "w") as hf, FileEdgeAppender(
              hf
          ) as buffered_hf:
              buffered_hf.append_tensor_list(
                  "foo",
                  TensorList(
                      torch.tensor([0, 3, 5], dtype=torch.long),
                      torch.tensor([1, 2, 3, 4, 5], dtype=torch.long),
                  ),
              )
              buffered_hf.append_tensor_list(
                  "bar",
                  TensorList(
                      torch.tensor([0, 1_000_000], dtype=torch.long),
                      torch.arange(1_000_000, dtype=torch.long),
                  ),
              )
              buffered_hf.append_tensor_list(
                  "foo",
                  TensorList(
                      torch.tensor([0, 1, 1, 3], dtype=torch.long),
                      torch.tensor([6, 7, 8], dtype=torch.long),
                  ),
              )
  
          with h5py.File(bf.name, "r") as hf:
              np.testing.assert_equal(
                  hf["foo_offsets"],
                  np.array([0, 3, 5, 6, 6, 8], dtype=np.int64),
              )
              np.testing.assert_equal(
                  hf["foo_data"],
                  np.array([1, 2, 3, 4, 5, 6, 7, 8], dtype=np.int64),
              )
              np.testing.assert_equal(
                  hf["bar_offsets"],
                  np.array([0, 1_000_000], dtype=np.int64),
              )
              np.testing.assert_equal(
                  hf["bar_data"], np.arange(1_000_000, dtype=np.int64)
              )
  
file_path: PyTorch-BigGraph/test/test_graph_storages.py
imports: import tempfile
  from unittest import main, TestCase
  import h5py
  import numpy
  import torch
  from torchbiggraph.graph_storages import FileEdgeAppender
  from torchbiggraph.tensorlist import TensorList
label_desc: Use image node_id 2 for calling the TestFileEdgeAppender obj's underlying member method code with example usage: obj.test_tensor_list() without return types