code: def test_one_sided_selection_deprecation():
      """Check that we raise a FutureWarning when accessing the parameter `estimator_`."""
      oss = OneSidedSelection(random_state=RND_SEED)
      oss.fit_resample(X, Y)
      warn_msg = "`estimator_` attribute has been deprecated"
      with pytest.warns(FutureWarning, match=warn_msg):
          oss.estimator_
  
file_path: imbalanced-learn/imblearn/under_sampling/_prototype_selection/tests/test_one_sided_selection.py
imports: import numpy
  import pytest
  from sklearn.datasets import make_classification
  from sklearn.neighbors import KNeighborsClassifier
  from sklearn.utils._testing import assert_array_equal
  from imblearn.under_sampling import OneSidedSelection
label_desc: Use image node_id 5 for calling a global function with example usage: test_one_sided_selection_deprecation() without return types