code: def test_additive_chi2_sampler_wrong_sample_steps(method):
      """Check that we raise a ValueError on invalid sample_steps"""
      transformer = AdditiveChi2Sampler(sample_steps=4)
      msg = re.escape(
          "If sample_steps is not in [1, 2, 3], you need to provide sample_interval"
      )
      with pytest.raises(ValueError, match=msg):
          getattr(transformer, method)(X)
  
imports: import re
  import numpy
  import pytest
  from sklearn.datasets import make_classification
  from sklearn.kernel_approximation import AdditiveChi2Sampler, Nystroem, PolynomialCountSketch, RBFSampler, SkewedChi2Sampler
  from sklearn.metrics.pairwise import chi2_kernel, kernel_metrics, polynomial_kernel, rbf_kernel
  from sklearn.utils._testing import assert_allclose, assert_array_almost_equal, assert_array_equal
  from sklearn.utils.fixes import CSR_CONTAINERS
label_desc: Use image node_id 7 for calling a global function with example usage: test_additive_chi2_sampler_wrong_sample_steps(method) without return types