pub fn node_factory(
    node_id: NodeId,
    node_global: &NodeGlobalRef
) -> Option<(Node, NodeInfo)>