code: def get_rdivide_elwise_kernel(context, dtype_x, dtype_y, dtype_z):
      # implements y / x!
      x_is_complex = dtype_x.kind == "c"
      y_is_complex = dtype_y.kind == "c"
      z_is_complex = dtype_z.kind == "c"
  
      x = "x[i]"
      y = "y"
  
      if z_is_complex and dtype_x != dtype_y:
          if x_is_complex and dtype_x != dtype_z:
              x = "{}_cast({})".format(
                  complex_dtype_to_name(dtype_z), x
              )
          if y_is_complex and dtype_y != dtype_z:
              y = "{}_cast({})".format(
                  complex_dtype_to_name(dtype_z), y
              )
  
      if x_is_complex and y_is_complex:
          yox = "{}_divide({}, {})".format(
              complex_dtype_to_name(dtype_z), y, x
          )
      elif not y_is_complex and x_is_complex:
          yox = "{}_rdivide({}, {})".format(
              complex_dtype_to_name(dtype_z), y, x
          )
      elif y_is_complex and not x_is_complex:
          yox = "{}_divider({}, {})".format(
              complex_dtype_to_name(dtype_z), y, x
          )
      else:
          yox = f"{y} / {x}"
  
      return get_elwise_kernel(
          context,
          "{tp_z} *z, {tp_x} *x, {tp_y} y".format(
              tp_x=dtype_to_ctype(dtype_x),
              tp_y=dtype_to_ctype(dtype_y),
              tp_z=dtype_to_ctype(dtype_z),
          ),
          f"z[i] = {yox}",
          name="divide_r",
      )
  
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 16 for calling a global function with example usage: get_rdivide_elwise_kernel(context, dtype_x, dtype_y, dtype_z) and returns: get_elwise_kernel