code: def test_additive_chi2_sampler_future_warnings():
      """Check that we raise a FutureWarning when accessing to `sample_interval_`."""
      transformer = AdditiveChi2Sampler()
      transformer.fit(X)
      msg = re.escape(
          "The ``sample_interval_`` attribute was deprecated in version 1.3 and "
          "will be removed 1.5."
      )
      with pytest.warns(FutureWarning, match=msg):
          assert transformer.sample_interval_ is not None
  
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 6 for calling a global function with example usage: test_additive_chi2_sampler_future_warnings() without return types