Finding Callback Function

rna_SpaceNodeEditor_node_tree_set might be the function?

Most of the buttons in the UI edit some RNA property, and so it’s a matter of finding the name of that property and where it is defined in the makesrna module.