code: def test_non_contig(self):
      from numpy.random import rand
  
      p = 10007
      nx = 1017
      ny = 77
      X = rand(p + 1, nx + 1)
      Xp = rand(p + 1, nx + 1)
      y = rand(p + 1, ny + 1)
      Xn = X[:p, :nx]
      Xpn = Xp[:p, :nx]
      yn = y[:p, :ny]
      Xc = np.ascontiguousarray(Xn)
      Xpc = np.ascontiguousarray(Xpn)
      yc = np.ascontiguousarray(yn)
      self.assertTrue(
          all(
              [
                  not Xn.flags["C_CONTIGUOUS"],
                  not Xpn.flags["C_CONTIGUOUS"],
                  not yn.flags["C_CONTIGUOUS"],
              ]
          )
      )
      self.assertTrue(
          all(
              [
                  Xc.flags["C_CONTIGUOUS"],
                  Xpc.flags["C_CONTIGUOUS"],
                  yc.flags["C_CONTIGUOUS"],
              ]
          )
      )
      self.assertTrue(
          all(
              [
                  np.allclose(Xc, Xn),
                  np.allclose(Xpc, Xpn),
                  np.allclose(yc, yn),
              ]
          )
      )
      regr_train = d4p.linear_regression_training()
      rtc = regr_train.compute(Xc, yc)
      regr_predict = d4p.linear_regression_prediction()
      rpc = regr_predict.compute(Xpc, rtc.model)
      regr_train = d4p.linear_regression_training()
      rtn = regr_train.compute(Xn, yn)
      regr_predict = d4p.linear_regression_prediction()
      rpn = regr_predict.compute(Xpn, rtn.model)
      self.assertTrue(np.allclose(rpn.prediction, rpc.prediction))
  
imports: import unittest
  import numpy
  import daal4py
label_desc: Use image node_id 1 for calling the Test obj's underlying member method code with example usage: obj.test_non_contig() without return types