code: def get_diff_kernel(context, dtype):
      return get_elwise_kernel(
          context,
          [
              VectorArg(dtype, "result", with_offset=True),
              VectorArg(dtype, "array", with_offset=True),
          ],
          "result[i] = array[i+1] - array[i]",
          name="diff",
      )
  
imports: import enum
  from typing import Any, List, Optional, Tuple, Union
  import numpy
  import pyopencl
  from pyopencl.tools import context_dependent_memoize
  from pyopencl.tools import dtype_to_ctype, DtypedArgument, VectorArg, ScalarArg, KernelTemplateBase, dtype_to_c_struct
  from pytools import memoize_method
label_desc: Use image node_id 36 for calling a global function with example usage: get_diff_kernel(context, dtype) and returns: get_elwise_kernel