Scikit-learn provides FunctionTransformer
to allow users to quickly write transformers without subclassing components and such.
I believe this would be a great addition to the Snowflake ML library to have the same option to allow composing custom pre-processing transforms in the Snowflake ML Pipeline in a consistent fashion instead of having to do some pre-processing against the dataframe pre-pipeline and more in the pipeline.