code: def weld_mean(array, weld_type):
      
      weld_obj_sum = weld_aggregate(array, weld_type, '+')
  
      obj_id, weld_obj = create_weld_object(array)
      weld_obj_sum_id = get_weld_obj_id(weld_obj, weld_obj_sum)
  
      weld_template = _weld_mean_code
  
      weld_obj.weld_code = weld_template.format(sum=weld_obj_sum_id,
                                                array=obj_id)
  
      return weld_obj
docs: Returns the mean of the array.
  
      Parameters
      ----------
      array : numpy.ndarray or WeldObject
          Input array.
      weld_type : WeldType
          Type of each element in the input array.
  
      Returns
      -------
      WeldObject
          Representation of this computation.