How can I get geometry nodes group node-tree name? With this code I can get the name of node, but I need get name of node-tree assigning to this node group instead.
parent_group = bpy.data.node_groups['MY NODE GROUP PARENT']
for nod in parent_group.nodes:
if nod.type == 'GROUP':
my_node_grp = nod
# Try to get name of group I need name of node tree not node name or label
print(my_node_grp.name)
If you are interested in why I need this, I actually want to write a script for searching my groups in node graphs