code: def get_sum_kernel(dtype_out, dtype_in):
      if dtype_out is None:
          dtype_out = dtype_in
  
      return ReductionKernel(
          dtype_out,
          "0",
          "a+b",
          arguments="const {tp} *in".format(
              tp=dtype_to_ctype(dtype_in)
          ),
      )
  
file_path: pycuda/pycuda/reduction.py
imports: from pycuda.tools import context_dependent_memoize
  from pycuda.tools import dtype_to_ctype
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: get_sum_kernel(dtype_out, dtype_in) and returns: ReductionKernel