def METHOD_NAME(node):
    vcol_start = Vector(node.color_start)
    vcol_end = Vector(node.color_end)
    def element_iterated(matrix, theta, index):
        return matrix, Color(vcol_start.lerp(vcol_end, index*theta))[:]
    data = node.inputs['Matrix'].sv_get()
    data_out = []
    get_mat_theta_idx = data_out.append
    if len(data) > 0:
        theta = 1 / len(data)
        for idx, matrix in enumerate(data):
            get_mat_theta_idx([matrix, theta, idx])
    return [element_iterated(*values) for values in data_out]