code: def test_check_X_y_raises_error_when_pandas_index_dont_match():
      df = pd.DataFrame(
          {"0": [1, 2, 3, 4], "1": [5, 6, 7, 8]},
          index=[22, 99, 101, 212],
      )
      s = pd.Series([1, 2, 3, 4], index=[22, 99, 101, 999])
      with pytest.raises(ValueError):
          check_X_y(df, s)
  
imports: import numpy
  import pandas
  import pytest
  from pandas.testing import assert_frame_equal, assert_series_equal
  from scipy.sparse import csr_matrix
  from feature_engine.dataframe_checks import _check_contains_inf, _check_contains_na, _check_X_matches_training_df, check_X, check_X_y, check_y
label_desc: Use image node_id 13 for calling a global function with example usage: test_check_X_y_raises_error_when_pandas_index_dont_match() without return types