code: def test_non_contiguous_arrays(self):
      x = np.arange(10, dtype=float)[::3]
      w = np.ones(10, dtype=float)[::3]
      assert not x.flags.c_contiguous
      assert not x.flags.f_contiguous
      assert not w.flags.c_contiguous
      assert not w.flags.f_contiguous
  
      res = isotonic_regression(x, weights=w)
      assert np.all(np.isfinite(res.x))
      assert np.all(np.isfinite(res.weights))
      assert np.all(np.isfinite(res.blocks))
  
file_path: scipy/scipy/optimize/tests/test_isotonic_regression.py
imports: import numpy
  from numpy.testing import assert_allclose, assert_equal
  import pytest
  from scipy.optimize._pava_pybind import pava
  from scipy.optimize import isotonic_regression
label_desc: Use image node_id 8 for calling the TestIsotonicRegression obj's underlying member method code with example usage: obj.test_non_contiguous_arrays() without return types