def METHOD_NAME(labels, p):
    """Check calculation of generalized mean for vectors of length 2."""
    for x in labels:
        print(x)
        assert np.allclose(calculate_generalized_mean(x, p), sklearn_generalized_average(x[0], x[1], average_method=p))