def METHOD_NAME(self):
    """Test accuracy of different 1d interpolation methods."""
    xp = np.linspace(0, 2 * np.pi, 100)
    x = np.linspace(0, 2 * np.pi, 10000)
    f = lambda x: np.sin(x)
    fp = f(xp)
    fq = interp1d(x, xp, fp, method="nearest")
    np.testing.assert_allclose(fq, f(x), rtol=1e-2, atol=1e-1)
    fq = interp1d(x, xp, fp, method="linear")
    np.testing.assert_allclose(fq, f(x), rtol=1e-4, atol=1e-3)
    fq = interp1d(x, xp, fp, method="cubic")
    np.testing.assert_allclose(fq, f(x), rtol=1e-6, atol=1e-5)
    fq = interp1d(x, xp, fp, method="cubic2")
    np.testing.assert_allclose(fq, f(x), rtol=1e-6, atol=1e-5)
    fq = interp1d(x, xp, fp, method="cardinal")
    np.testing.assert_allclose(fq, f(x), rtol=1e-6, atol=1e-5)
    fq = interp1d(x, xp, fp, method="catmull-rom")
    np.testing.assert_allclose(fq, f(x), rtol=1e-6, atol=1e-5)
    fq = interp1d(x, xp, fp, method="monotonic")
    np.testing.assert_allclose(fq, f(x), rtol=1e-4, atol=1e-3)
    fq = interp1d(x, xp, fp, method="monotonic-0")
    np.testing.assert_allclose(fq, f(x), rtol=1e-4, atol=1e-2)