code: def test_value(self, device):
      converter = ToDevice(device=device, non_blocking=True)
      data = torch.tensor([1, 2, 3, 4])
      ret = converter(data)
      assert_allclose(ret, data.to(device))
  
file_path: MONAI/tests/test_to_device.py
imports: from __future__ import annotations
  import unittest
  import torch
  from parameterized import parameterized
  from monai.transforms import ToDevice
  from tests.utils import assert_allclose, skip_if_no_cuda
label_desc: Use image node_id 1 for calling the TestToDevice obj's underlying member method code with example usage: obj.test_value(device) without return types