code: def get_real_kernel(dtype, real_dtype):
      return get_elwise_kernel(
          "%(tp)s *y, %(real_tp)s *z"
          % {
              "tp": dtype_to_ctype(dtype),
              "real_tp": dtype_to_ctype(real_dtype),
          },
          "z[i] = real(y[i])",
          "real",
      )
  
imports: from pycuda.tools import context_dependent_memoize
  from typing import Any
  import numpy
  from pycuda.tools import dtype_to_ctype, VectorArg, ScalarArg
  from pytools import memoize_method
label_desc: Use image node_id 20 for calling a global function with example usage: get_real_kernel(dtype, real_dtype) and returns: get_elwise_kernel