code: def test_bad_window_type(X, y, group_numbers):
      cv_args = {
          "test_size": 1,
          "train_size": 3,
          "window_type": "incorrect_window_type",
      }
      expected_results = None
      error_message = (
          'Window type can be either "rolling" or "expanding"'
      )
  
      with pytest.raises(ValueError, match=error_message):
          check_splits(X, y, group_numbers, cv_args, expected_results)
  
imports: import numpy
  import pytest
  from sklearn.dummy import DummyClassifier
  from sklearn.model_selection import cross_val_score
  from mlxtend.evaluate import GroupTimeSeriesSplit
label_desc: Use image node_id 22 for calling a global function with example usage: test_bad_window_type(X, y, group_numbers) without return types