code: def test_inconsistent_data(self):
      # nan or inf in y
      y_train_nan = y_train.copy()
      y_train_nan[0] = np.nan
      assert_raises(
          ValueError,
          stacking,
          [LinearRegression()],
          X_train,
          y_train_nan,
          X_test,
      )
  
      # y has two or more columns
      assert_raises(
          ValueError,
          stacking,
          [LinearRegression()],
          X_train,
          np.c_[y_train, y_train],
          X_test,
      )
  
      # X_train and y_train shape nismatch
      assert_raises(
          ValueError,
          stacking,
          [LinearRegression()],
          X_train,
          y_train[:10],
          X_test,
      )
  
imports: from __future__ import print_function
  from __future__ import division
  import unittest
  from numpy.testing import assert_array_equal
  from numpy.testing import assert_equal
  from numpy.testing import assert_raises
  from numpy.testing import assert_warns
  import os
  import glob
  import numpy
  from scipy.sparse import csr_matrix
  from scipy.sparse import csc_matrix
  from scipy.sparse import coo_matrix
  from sklearn.model_selection import cross_val_predict
  from sklearn.model_selection import cross_val_score
  from sklearn.model_selection import KFold
  from sklearn.datasets import load_boston
  from sklearn.metrics import mean_absolute_error
  from sklearn.metrics import make_scorer
  from sklearn.linear_model import LinearRegression
  from sklearn.linear_model import Ridge
  from vecstack import stacking
  from vecstack.core import model_action
label_desc: Use image node_id 27 for calling the TestFuncRegression obj's underlying member method code with example usage: obj.test_inconsistent_data() without return types