Sweep 1 in GH with the same options like in Rhino - Python script?

Hello,

Is there a way to script sweep1 in grasshopper which would have the same inputs like in Rhino?
I can see there is no option like roadlike mode for example in original sweep1 gh component.

I found this: https://developer.rhino3d.com/samples/rhinocommon/sweep-surfaces-with-sweep1/
but have no clue if this can be used to create GH component behaving like sweep in the rhino or how to apply it.

Thanks