The node you are looking for is at Texinfo::Common $command = find_parent_root_command($object, $tree_element).