code: def check_rbf1d_regularity(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)
  
file_path: catboost/contrib/python/scipy/py2/scipy/interpolate/tests/test_rbf.py
imports: from __future__ import division, print_function, absolute_import
  import numpy
  from numpy.testing import assert_, assert_array_almost_equal, assert_almost_equal
  from numpy import linspace, sin, random, exp, allclose
  from scipy.interpolate.rbf import Rbf
label_desc: Use image node_id 5 for calling a global function with example usage: check_rbf1d_regularity(function, atol) without return types