code: def test_balanced_bagging_classifier_n_features():
      """Check that we raise a FutureWarning when accessing `n_features_`."""
      X, y = load_iris(return_X_y=True)
      estimator = BalancedRandomForestClassifier(
          sampling_strategy="all", replacement=True, bootstrap=False
      ).fit(X, y)
      with pytest.warns(
          FutureWarning, match="`n_features_` was deprecated"
      ):
          estimator.n_features_
  
imports: import numpy
  import pytest
  import sklearn
  from sklearn.datasets import load_iris, make_classification
  from sklearn.model_selection import GridSearchCV, train_test_split
  from sklearn.utils._testing import assert_allclose, assert_array_equal
  from sklearn.utils.fixes import parse_version
  from imblearn.ensemble import BalancedRandomForestClassifier
label_desc: Use image node_id 11 for calling a global function with example usage: test_balanced_bagging_classifier_n_features() without return types