def test_input_estimator_unchanged():
    est = RandomForestClassifier()
    transformer = SelectFromModel(estimator=est)
    transformer.fit(data, y)
    assert_true(transformer.estimator is est)
Test that SelectFromModel fits on a clone of the estimator.
dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/feature_selection/tests/test_from_model.py/test_input_estimator_unchanged