code: def test_raises_error_if_only_1_variable(estimator):
      return check_raises_error_if_only_1_variable(estimator)
  
file_path: feature_engine/tests/test_selection/test_check_estimator_selectors.py
imports: import pytest
  from sklearn.linear_model import LogisticRegression
  from sklearn.utils.estimator_checks import check_estimator
  from feature_engine.selection import DropConstantFeatures, DropCorrelatedFeatures, DropDuplicateFeatures, DropFeatures, DropHighPSIFeatures, RecursiveFeatureAddition, RecursiveFeatureElimination, SelectByShuffling, SelectBySingleFeaturePerformance, SelectByTargetMeanPerformance, SmartCorrelatedSelection, SelectByInformationValue
  from tests.estimator_checks.estimator_checks import check_feature_engine_estimator
  from tests.estimator_checks.init_params_triggered_functionality_checks import check_confirm_variables, check_raises_error_if_only_1_variable
label_desc: Use image node_id 5 for calling a global function with example usage: test_raises_error_if_only_1_variable(estimator) and returns: check_raises_error_if_only_1_variable