# How to change the active node tree data block using python?

I'm using animation nodes add-on. How can I switch between the node tree data blocks using python (as shown in the picture below)?

bpy.data.objects["Cube"].modifiers["GeometryNodes"].node_group =  bpy.data.node_groups["NodeTree.001"]