This is what I would like:
I'm looking for an alternative to bpy.ops.node.group_make()
Because it seems like a bad approach.
I simply want to group a new group nodes of an already existing material, without having to recreate anything, after which I would add the inputs and outputs (the latter does not seem to me a difficult passage)
But the problem is that I can't find answers anywhere, I probably try badly, but basically I just want to move my nodes within a group, just like it does bpy.ops.node.group_make()
This, however, has problems in the context area so I discarded it regardless
Edit: I want to clarify that this must happen in the context 3D_view the context nodes editor is not necessarily open
Edit 2: I was also thinking if it is possible to easily copy the nodes and their links / parameters without necessarily having to write an exaggeratedly long script, to then insert them in the group node
bpy.ops.node.group_make()
if the issue of passing the correct context would be solved? $\endgroup$