<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def weld_mean(array, weld_type):
 """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. """

    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