code: def test_cgpukernelbase():
      # Import inside the function to prevent the back-end from being
      # initialized when reloading the GpuEye object from cache.
      from .config import mode_with_gpu, test_ctx_name
  
      op = GpuEye(dtype="int32", context_name=test_ctx_name)
  
      f = theano.function([], op(4, 5), mode=mode_with_gpu)
  
      r = f()
  
      assert r.dtype == "int32"
      assert (np.asarray(r) == np.eye(4, 5, dtype="int32")).all()
  
file_path: Theano/theano/gpuarray/tests/test_cgpukernelbase.py
imports: from __future__ import division, absolute_import, print_function
  import numpy
  from six.moves import xrange
  import theano
  from theano import tensor, config, Apply, Op
  from theano.scalar import int32
  from theano.gof import ParamsType
  from theano.gradient import grad_undefined
  from ..basic_ops import CGpuKernelBase
  from ..type import GpuArrayType, get_context, gpu_context_type
label_desc: Use image node_id 1 for calling a global function with example usage: test_cgpukernelbase() without return types