code: def test_nearest_list_argument(self):
      nd = np.array(
          [
              [0, 0, 0, 0, 1, 0, 1],
              [0, 0, 0, 0, 0, 1, 1],
              [0, 0, 0, 0, 1, 1, 2],
          ]
      )
      d = nd[:, 3:]
  
      # z is np.array
      NI = NearestNDInterpolator((d[0], d[1]), d[2])
      assert_array_equal(NI([0.1, 0.9], [0.1, 0.9]), [0, 2])
  
      # z is list
      NI = NearestNDInterpolator((d[0], d[1]), list(d[2]))
      assert_array_equal(NI([0.1, 0.9], [0.1, 0.9]), [0, 2])
  
imports: import numpy
  from numpy.testing import assert_equal, assert_array_equal, assert_allclose
  import pytest
  from pytest import raises
  from scipy.interpolate import griddata, NearestNDInterpolator, LinearNDInterpolator, CloughTocher2DInterpolator
label_desc: Use image node_id 2 for calling the TestNearestNDInterpolator obj's underlying member method code with example usage: obj.test_nearest_list_argument() without return types