I'm working on an extension which needs to be able to group certain open models like the model panel does. Is there a way to utilize the group function in the model panel from an extension in python?

Thank you,
Taylor