code: def test_cupy_containers():
      import cupy as cp
  
      test_array = cp.array([[42, 42], [42, 42]], dtype=cp.uint8)
      disallowed_samples = [test_array, tensors.TensorGPU(test_array)]
      disallowed_batches = [tensors.TensorListGPU(test_array)]
      yield from run_checks(
          [], [], disallowed_samples, disallowed_batches
      )
  
file_path: DALI/dali/test/python/test_external_source_impl_utils.py
imports: from nvidia.dali._utils import external_source_impl
  from nvidia.dali import tensors, pipeline_def
  import nvidia.dali.fn
  from nose.tools import assert_equals
  from nose_utils import raises
  from nose.plugins.attrib import attr
  import numpy
label_desc: Use image node_id 9 for calling a global function with example usage: test_cupy_containers() without return types