Zend certified PHP/Magento developer

programmatically create attribute set based on another one

I need to programmatically create a new attribute set, via setup patch, based on another one,
I do not have to use ID because it’s not fixed, only have attribute set name
thank you