code: def test_not_consecutive_group_names(
      X, y, not_consecutive_group_names
  ):
      cv_args = {"test_size": 1, "train_size": 3}
      expected_results = None
      error_message = "The groups should be consecutive"
  
      with pytest.raises(ValueError, match=error_message):
          check_splits(
              X,
              y,
              not_consecutive_group_names,
              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 26 for calling a global function with example usage: test_not_consecutive_group_names(X, y, not_consecutive_group_names) without return types