code: def test_balanced_random_forest_change_behaviour(imbalanced_dataset):
      """Check that we raise a change of behaviour for the parameters `sampling_strategy`
      and `replacement`.
      """
      estimator = BalancedRandomForestClassifier(
          sampling_strategy="all", bootstrap=False
      )
      with pytest.warns(
          FutureWarning, match="The default of `replacement`"
      ):
          estimator.fit(*imbalanced_dataset)
      estimator = BalancedRandomForestClassifier(
          replacement=True, bootstrap=False
      )
      with pytest.warns(
          FutureWarning, match="The default of `sampling_strategy`"
      ):
          estimator.fit(*imbalanced_dataset)
      estimator = BalancedRandomForestClassifier(
          sampling_strategy="all", replacement=True
      )
      with pytest.warns(
          FutureWarning, match="The default of `bootstrap`"
      ):
          estimator.fit(*imbalanced_dataset)
  
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 13 for calling a global function with example usage: test_balanced_random_forest_change_behaviour(imbalanced_dataset) without return types