Finding nodes for an intermediate task in a pipeline
Created by: Dreamlone
When solving the classification task, regression models can sometimes be used as in the diagram below
There is a need to implement a method that will return the last (root) regression node in such a pipeline