For anyone else trying to find a way to do this and just coming across this thread. You can just get the parmTemplateGroup from the node's type definition and set the instance of the node to match:
ptg = node.type().parmTemplateGroup()
node.setParmTemplateGroup(ptg)