code: def test_tensor_values(self):
      device = (
          torch.device("cuda:0")
          if torch.cuda.is_available()
          else torch.device("cpu:0")
      )
      input_data = {
          "img": torch.tensor([[0, 1], [1, 2]], device=device),
          "seg": torch.tensor([[0, 1], [1, 2]], device=device),
      }
      # test default `times=1`
      result = CopyItemsd(keys="img", names="img_1")(input_data)
      self.assertTrue("img_1" in result)
      result["img_1"] += 1
      assert_allclose(
          result["img"], torch.tensor([[0, 1], [1, 2]], device=device)
      )
      assert_allclose(
          result["img_1"], torch.tensor([[1, 2], [2, 3]], device=device)
      )
  
file_path: MONAI/tests/test_copy_itemsd.py
imports: from __future__ import annotations
  import unittest
  import numpy
  import torch
  from parameterized import parameterized
  from monai.networks import eval_mode
  from monai.transforms import CopyItemsd
  from monai.utils import ensure_tuple
  from tests.utils import assert_allclose
label_desc: Use image node_id 3 for calling the TestCopyItemsd obj's underlying member method code with example usage: obj.test_tensor_values() without return types