code: def test_metatensor(self):
      shape = (1, 10, 9, 8)
      items = [
          TEST_NDARRAYS[-1](np.arange(0, np.prod(shape)).reshape(shape))
      ]
      with tempfile.TemporaryDirectory() as tempdir:
          ds = GDSDataset(
              data=items,
              transform=_InplaceXform(),
              cache_dir=tempdir,
              device=0,
          )
          assert_allclose(ds[0], ds[0][0], type_test=False)
  
imports: from __future__ import annotations
  import os
  import pickle
  import tempfile
  import unittest
  import numpy
  import torch
  from parameterized import parameterized
  from monai.data import GDSDataset, json_hashing
  from monai.transforms import Compose, Flip, Identity, LoadImaged, SimulateDelayd, Transform
  from monai.utils import optional_import
  from tests.utils import TEST_NDARRAYS, assert_allclose
label_desc: Use image node_id 2 for calling the TestDataset obj's underlying member method code with example usage: obj.test_metatensor() without return types