get_parent_id2 function

Get the parent node id