code: def test_tensors(self) -> None:
      with tempfile.NamedTemporaryFile() as bf:
          with h5py.File(bf.name, "w") as hf, FileEdgeAppender(
              hf
          ) as buffered_hf:
              buffered_hf.append_tensor(
                  "foo", torch.tensor([1, 2, 3], dtype=torch.long)
              )
              buffered_hf.append_tensor(
                  "bar", torch.tensor([10, 11], dtype=torch.long)
              )
              buffered_hf.append_tensor(
                  "foo", torch.tensor([4], dtype=torch.long)
              )
              buffered_hf.append_tensor(
                  "foo", torch.tensor([], dtype=torch.long)
              )
              buffered_hf.append_tensor(
                  "bar", torch.arange(12, 1_000_000, dtype=torch.long)
              )
              buffered_hf.append_tensor(
                  "foo", torch.tensor([5, 6], dtype=torch.long)
              )
  
          with h5py.File(bf.name, "r") as hf:
              np.testing.assert_equal(
                  hf["foo"],
                  np.array([1, 2, 3, 4, 5, 6], dtype=np.int64),
              )
              np.testing.assert_equal(
                  hf["bar"], np.arange(10, 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 1 for calling the TestFileEdgeAppender obj's underlying member method code with example usage: obj.test_tensors() without return types