This is now implemented in scikit-learn via the class FrozenEstimator; see here: https://scikit-learn.org/stable/modules/generated/sklearn.frozen.FrozenEstimator.html#sklearn.frozen.FrozenEstimator
FrozenEstimator