code: def test_type_cupy(self, input_param, input_data, expected_type):
      input_data = {k: cp.asarray(v) for k, v in input_data.items()}
  
      result = CastToTyped(**input_param)(input_data)
      for k, v in result.items():
          self.assertTrue(isinstance(v, cp.ndarray))
          self.assertEqual(v.dtype, expected_type[k])
  
file_path: MONAI/tests/test_cast_to_typed.py
imports: from __future__ import annotations
  import unittest
  import numpy
  import torch
  from parameterized import parameterized
  from monai.transforms import CastToTyped
  from monai.utils import optional_import
  from tests.utils import HAS_CUPY
label_desc: Use image node_id 2 for calling the TestCastToTyped obj's underlying member method code with example usage: obj.test_type_cupy(input_param, input_data, expected_type) without return types