code: def test_rus_boost_classifier_set_both_estimator_and_base_estimator():
      """Check that we raise a ValueError when setting both `estimator` and
      `base_estimator`."""
      X, y = load_iris(return_X_y=True)
      err_msg = "Both `estimator` and `base_estimator` were set. Only set `estimator`."
      with pytest.raises(ValueError, match=err_msg):
          RUSBoostClassifier(
              estimator=DecisionTreeClassifier(),
              base_estimator=DecisionTreeClassifier(),
          ).fit(X, y)
  
file_path: imbalanced-learn/imblearn/ensemble/tests/test_weight_boosting.py
imports: import numpy
  import pytest
  import sklearn
  from sklearn.datasets import load_iris, make_classification
  from sklearn.model_selection import train_test_split
  from sklearn.tree import DecisionTreeClassifier
  from sklearn.utils._testing import assert_array_equal
  from sklearn.utils.fixes import parse_version
  from imblearn.ensemble import RUSBoostClassifier
label_desc: Use image node_id 5 for calling a global function with example usage: test_rus_boost_classifier_set_both_estimator_and_base_estimator() without return types