pub fn get_node_state(node: &NodeRef<'_, CustomAttributeValues>) -> NodeState