def METHOD_NAME(self):
    pts = np.array([[0, 0],
                    [0, 1],
                    [1, 1],
                    [1, 0]], dtype=float)
    pt = gen.tools.get_centroid(pts, mode='rigorous')
    assert_allclose(pt, [0.5, 0.5], rtol=1e-7)
    pt = gen.tools.get_centroid(pts, mode='fast')
    assert_allclose(pt, [0.5, 0.5], rtol=1e-12)
    pts = np.array([[0, 0],
                    [0, 0.2],
                    [0, 0.4],
                    [0, 0.6],
                    [0, 0.8],
                    [0, 1],
                    [1, 1],
                    [1, 0]], dtype=float)
    pt = gen.tools.get_centroid(pts, mode='rigorous')
    assert_allclose(pt, [0.5, 0.5], rtol=1e-7)
    pt = gen.tools.get_centroid(pts, mode='fast')
    assert_allclose(pt, [0.25, 0.5], rtol=1e-12)