code: def test_check_X_y():
      X = np.ones((100, 10))
      y1 = np.ones((100,))
      y2 = np.ones((100, 1))
      y3 = np.ones((100, 2))
      y4 = np.ones((101,))
  
      check_X_y(X, y1, multi_output=False)
      check_X_y(X, y2, multi_output=False)
      with pytest.raises(Exception):
          check_X_y(X, y3, multi_output=False)
      with pytest.raises(Exception):
          check_X_y(X, y4, multi_output=False)
      with pytest.raises(Exception):
          check_X_y(X, y4, multi_output=True)
  
imports: from cuml.testing.test_preproc_utils import assert_allclose
  from sklearn.utils.sparsefuncs import inplace_csr_column_scale, inplace_csr_row_scale, inplace_column_scale, mean_variance_axis, min_max_axis
  from cuml._thirdparty.sklearn.utils.sparsefuncs import inplace_csr_column_scale, inplace_csr_row_scale, inplace_column_scale, mean_variance_axis, min_max_axis
  from sklearn.utils.extmath import row_norms, _incremental_mean_and_var
  from cuml._thirdparty.sklearn.utils.extmath import row_norms, _incremental_mean_and_var
  from cuml._thirdparty.sklearn.utils.validation import check_X_y
  from cuml.internals.safe_imports import gpu_only_import
  import pytest
  from cuml.internals.safe_imports import cpu_only_import
label_desc: Use image node_id 3 for calling a global function with example usage: test_check_X_y() without return types