code: def test_complex(self, method):
      x, y, values = self._sample_2d_data()
      points = (x, y)
      values = values - 2j * values
  
      sample = cp.array(
          [
              [1, 2.3, 5.3, 0.5, 3.3, 1.2, 3],
              [1, 3.3, 1.2, 4.0, 5.0, 1.0, 3],
          ]
      ).T
  
      v1 = interpn(points, values, sample, method=method)
      v2r = interpn(points, values.real, sample, method=method)
      v2i = interpn(points, values.imag, sample, method=method)
      v2 = v2r + 1j * v2i
      assert_allclose(v1, v2)
  
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 12 for calling the TestInterpN obj's underlying member method code with example usage: obj.test_complex(method) without return types