As elsewhere, it ensures that `hasattr(pipeline, 'inverse_transform')` iff `hasattr(step, 'inverse_transform')` for all step in pipeline. Makes ducktyping meaningful.