def METHOD_NAME(self, predict, label_input):
    cost = F.square_error_cost(
        predict, paddle.cast(
            x=label_input, dtype='float32'))
    avg_cost = paddle.mean(cost)
    return avg_cost