code: def test_nearest(self, sample, wanted):
      points, values = self._get_sample_4d()
      interp = RegularGridInterpolator(points, values, method="nearest")
      assert_array_almost_equal(interp(sample), wanted)
  
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 8 for calling the TestRegularGridInterpolator obj's underlying member method code with example usage: obj.test_nearest(sample, wanted) without return types