code: def test_check_Xy_invalid_type_y():
      expect = "y must be a NumPy array. Found <class 'list'>"
      if sys.version_info < (3, 0):
          expect = expect.replace("class", "type")
      assert_raises(ValueError, expect, check_Xy, X, [1, 2, 3, 4])
  
imports: import os
  import sys
  import numpy
  from mlxtend.utils import assert_raises, check_Xy, format_kwarg_dictionaries
label_desc: Use image node_id 5 for calling a global function with example usage: test_check_Xy_invalid_type_y() without return types