code: def test_invalid_xi_dimensions(self):
      # https://github.com/scipy/scipy/issues/16519
      points = [cp.array((0, 1))]
      values = cp.array([0, 1])
      xi = cp.ones((1, 1, 3))
      msg = (
          "The requested sample points xi have dimension 3, but this "
          "RegularGridInterpolator has dimension 1"
      )
      with assert_raises(ValueError, match=msg):
          interpn(points, values, xi)
  
imports: import pytest
  import cupy
  from cupy.testing import assert_allclose, assert_array_equal, assert_array_almost_equal
  from cupy_backends.cuda.api import runtime
  from pytest import raises
  from cupyx.scipy.interpolate import RegularGridInterpolator, interpn
label_desc: Use image node_id 16 for calling the TestInterpN obj's underlying member method code with example usage: obj.test_invalid_xi_dimensions() without return types