code: def test_multipoint_2d(self):
      x = np.array(
          [(0, 0), (-0.5, -0.5), (-0.5, 0.5), (0.5, 0.5), (0.25, 0.3)],
          dtype=np.double,
      )
      y = np.arange(x.shape[0], dtype=np.double)
  
      xi = x[:, None, :] + np.array([0, 0, 0])[None, :, None]
  
      for method in ("nearest", "linear", "cubic"):
          for rescale in (True, False):
              msg = repr((method, rescale))
              yi = griddata(x, y, xi, method=method, rescale=rescale)
  
              assert_equal(yi.shape, (5, 3), err_msg=msg)
              assert_allclose(
                  yi,
                  np.tile(y[:, None], (1, 3)),
                  atol=1e-14,
                  err_msg=msg,
              )
  
file_path: catboost/contrib/python/scipy/py2/scipy/interpolate/tests/test_ndgriddata.py
imports: from __future__ import division, print_function, absolute_import
  import numpy
  from numpy.testing import assert_equal, assert_array_equal, assert_allclose
  from pytest import raises
  from scipy.interpolate import griddata, NearestNDInterpolator
label_desc: Use image node_id 4 for calling the TestGriddata obj's underlying member method code with example usage: obj.test_multipoint_2d() without return types