def METHOD_NAME(function, atol):
    # Check that the Rbf function approximates a smooth function well away
    # from the nodes.
    x = linspace(0, 10, 9)
    y = sin(x)
    rbf = Rbf(x, y, function=function)
    xi = linspace(0, 10, 100)
    yi = rbf(xi)
    # import matplotlib.pyplot as plt
    # plt.figure()
    # plt.plot(x, y, 'o', xi, sin(xi), ':', xi, yi, '-')
    # plt.plot(x, y, 'o', xi, yi-sin(xi), ':')
    # plt.title(function)
    # plt.show()
    msg = "abs-diff: %f" % abs(yi - sin(xi)).max()
    assert_(allclose(yi, sin(xi), atol=atol), msg)