Discussed in detail here, when you dynamically create a node with a wrapper (but not using it as a decorator), when trying to re-import it you get the underlying node function object back instead of a node object. The rest of the state seems to come along for the ride, but so when we new_node_instance.__setstate__(loaded_instance.__getstate__()) during loading it can look like things go write, but you're getting the wrong object back and it hurts when you try to (de)serialize a composite.
Discussed in detail here, when you dynamically create a node with a wrapper (but not using it as a decorator), when trying to re-import it you get the underlying node function object back instead of a node object. The rest of the state seems to come along for the ride, but so when we
new_node_instance.__setstate__(loaded_instance.__getstate__())
during loading it can look like things go write, but you're getting the wrong object back and it hurts when you try to (de)serialize a composite.MWE:
State looks reasonable, but reloaded object is the function not the node: