code: def test_1d_unsorted(self):
      x = np.array([2.5, 1, 4.5, 5, 6, 3])
      y = np.array([1, 2, 0, 3.9, 2, 1])
  
      for method in ("nearest", "linear", "cubic"):
          assert_allclose(
              griddata(x, y, x, method=method),
              y,
              err_msg=method,
              atol=1e-10,
          )
          assert_allclose(
              griddata(x.reshape(6, 1), y, x, method=method),
              y,
              err_msg=method,
              atol=1e-10,
          )
          assert_allclose(
              griddata((x,), y, (x,), method=method),
              y,
              err_msg=method,
              atol=1e-10,
          )
  
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 8 for calling the TestGriddata obj's underlying member method code with example usage: obj.test_1d_unsorted() without return types