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