code: def test_raises_threshold_error(_selector, _thresholds):
      with pytest.raises(ValueError):
          _selector(RandomForestClassifier(), threshold=_thresholds)
  
file_path: feature_engine/tests/test_selection/test_recursive_feature_selectors.py
imports: import numpy
  import pytest
  from sklearn.ensemble import RandomForestClassifier
  from sklearn.linear_model import Lasso, LogisticRegression
  from sklearn.model_selection import KFold, StratifiedKFold
  from sklearn.tree import DecisionTreeRegressor
  from feature_engine.selection import RecursiveFeatureAddition, RecursiveFeatureElimination
label_desc: Use image node_id 2 for calling a global function with example usage: test_raises_threshold_error(_selector, _thresholds) without return types