code: def _get_det_kernel(dtype):
      ctype = tools.dtype_to_ctype(dtype)
      args = "int* ipiv, {ctype}* x, unsigned xn".format(ctype=ctype)
      return ReductionKernel(
          dtype,
          "1.0",
          "a*b",
          "(ipiv[i] != i+1) ? -x[i*xn+i] : x[i*xn+i]",
          args,
      )
  
imports: from __future__ import absolute_import, division
  from pprint import pprint
  from string import Template
  from pycuda.tools import context_dependent_memoize
  from pycuda.compiler import SourceModule
  from pycuda.reduction import ReductionKernel
  from pycuda import cumath
  import pycuda.gpuarray
  import pycuda.driver
  import pycuda.elementwise
  import pycuda.tools
  import numpy
  from .None import cublas
  from .None import cudart
  from .None import misc
  from .None import cusolver
  import sys
  from .misc import init, shutdown, add_matvec, div_matvec, mult_matvec
  from .None import install_headers
label_desc: Use image node_id 29 for calling a global function with example usage: _get_det_kernel(dtype) and returns: ReductionKernel