code: def test_raise_exception_when_parameter_has_none_value_single(
      grid_search_param_with_none,
  ):
      with pytest.raises(TypeError):
          plot.grid_search(
              grid_search_param_with_none.cv_results_,
              change="criterion",
              subset=None,
          )
  
imports: import sys
  from functools import partial
  import pytest
  from matplotlib.testing.decorators import image_comparison, cleanup
  from sklearn_evaluation import plot
label_desc: Use image node_id 24 for calling a global function with example usage: test_raise_exception_when_parameter_has_none_value_single(grid_search_param_with_none) without return types