check_unary_func_throw_error: Validate ml_pipeline_builder transform method is a unary function
Description
Helper function that checks if a ml_pipeline_builder method is unary function (if it
isn't a NULL returning function), and if it isn't, throws an error that is customised with the
method function name.