code: def test_nonscalar_values(self, method):
      # Verify that non-scalar valued values also works
      points = [(0.0, 0.5, 1.0, 1.5, 2.0, 2.5)] * 2 + [
          (0.0, 5.0, 10.0, 15.0, 20, 25.0)
      ] * 2
  
      rng = cp.random.default_rng(1234)
      values = rng.random((6, 6, 6, 6, 8))
      sample = rng.random((7, 3, 4))
  
      interp = RegularGridInterpolator(
          points, values, method=method, bounds_error=False
      )
      v = interp(sample)
      assert_array_equal(v.shape, (7, 3, 8), err_msg=method)
  
      vs = []
      for j in range(8):
          interp = RegularGridInterpolator(
              points, values[..., j], method=method, bounds_error=False
          )
          vs.append(interp(sample))
      v2 = cp.array(vs).transpose(1, 2, 0)
  
      assert_allclose(v, v2, atol=1e-14, err_msg=method)
  
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 24 for calling the TestRegularGridInterpolator obj's underlying member method code with example usage: obj.test_nonscalar_values(method) without return types