unwrap_raw_model: Unwrap a fitted mlr3 learner to its underlying model object
Description
Depending on the GraphLearner shape (bare learner vs preprocessing
pipeops) the learner state nests one level deeper, so descend through
"model" elements until a non-state object is reached (bounded; stops on
ranger / data.frame / non-list).
Usage
unwrap_raw_model(learner)