code: def check_transfer(dali_type):
      arr = np.random.rand(3, 5, 6)
      data = dali_type(arr)
      data_gpu = data._as_gpu()
      data_cpu = data_gpu.as_cpu()
      if dali_type is TensorListCPU:
          np.testing.assert_array_equal(arr, data_cpu.as_array())
      else:
          np.testing.assert_array_equal(arr, np.array(data_cpu))
  
imports: import numpy
  import nvidia.dali.fn
  import nvidia.dali.types
  import warnings
  from numpy.testing import assert_array_equal
  from nvidia.dali import pipeline_def
  from nvidia.dali.backend_impl import TensorCPU, TensorListCPU, TensorListGPU
  from nvidia.dali.backend_impl import types
  import nvidia.dali
  from nose_utils import assert_raises
  from nose import SkipTest
  from test_utils import dali_type_to_np, py_buffer_from_address, get_device_memory_info
label_desc: Use image node_id 12 for calling a global function with example usage: check_transfer(dali_type) without return types