get_node_by_id code added.
get_parent_node_by_id code added.