code: def test_read_only(self, interpolator):
      # input data
      np.random.seed(0)
      xy = np.random.random((10, 2))
      x, y = xy[:, 0], xy[:, 1]
      z = np.hypot(x, y)
  
      # interpolation points
      XY = np.random.random((50, 2))
  
      xy.setflags(write=False)
      z.setflags(write=False)
      XY.setflags(write=False)
  
      interp = interpolator(xy, z)
      interp(XY)
  
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 TestNDInterpolators obj's underlying member method code with example usage: obj.test_read_only(interpolator) without return types