text: from .._tier0 import execute
  from .._tier0 import plugin_function
  from .._tier0 import Image
  
  @plugin_function
  def set_row(source : Image, row_index : int = 0, value : float = 0) -> Image:
      """Sets all pixel values x of a given row in X to a constant value v. 
      
      Parameters
      ----------
      source : Image
      row_index : Number
      value : Number
      
      Examples
      --------
      >>> import pyclesperanto_prototype as cle
      >>> cle.set_row(source, row_index, value)
      
      References
      ----------
      .. [1] https://clij.github.io/clij2-docs/reference_setRow
      """
  
  
      parameters = {
          "dst":source,
          "row":int(row_index),
          "value":float(value)
      }
  
      execute(__file__, '../clij-opencl-kernels/kernels/set_row_' + str(len(source.shape)) + 'd_x.cl', 'set_row_' + str(len(source.shape)) + 'd', source.shape, parameters);
      return source
  