code: def test_xi_1d(self):
      # Check that 1-D xi is interpreted as a coordinate
      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)
      y = y - 2j * y[::-1]
  
      xi = np.array([0.5, 0.5])
  
      for method in ("nearest", "linear", "cubic"):
          p1 = griddata(x, y, xi, method=method)
          p2 = griddata(x, y, xi[None, :], method=method)
          assert_allclose(p1, p2, err_msg=method)
  
          xi1 = np.array([0.5])
          xi3 = np.array([0.5, 0.5, 0.5])
          assert_raises(ValueError, griddata, x, y, xi1, method=method)
          assert_raises(ValueError, griddata, x, y, xi3, method=method)
  
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 10 for calling the TestGriddata obj's underlying member method code with example usage: obj.test_xi_1d() without return types