def METHOD_NAME(from_estimator: BaseEstimator, to_estimator: BaseEstimator):
    attrs = {
        k: v
        for k, v in vars(from_estimator).items()
        if k.endswith("_") or k.startswith("_")
    }
    for k, v in attrs.items():
        setattr(to_estimator, k, v)