code: def test_check_Xy_invalid_dim_y():
      if sys.version_info[:2] == (2, 7) and os.name == "nt":
          s = "y must be a 1D array. Found (4L, 2L)"
      else:
          s = "y must be a 1D array. Found (4, 2)"
      assert_raises(ValueError, s, check_Xy, X, X.astype(np.int_))
  
imports: import os
  import sys
  import numpy
  from mlxtend.utils import assert_raises, check_Xy, format_kwarg_dictionaries
label_desc: Use image node_id 8 for calling a global function with example usage: test_check_Xy_invalid_dim_y() without return types