Copy Group using script

Hi Everyone,

I want to copy the predefined group present in GH Canvas again and again based on conditional inputs using scripting (preferably using ghPython).

I am sure this should be possible. Can someone please guide me on how to do this?

Thank You

Kind Regards
Bhargav