Add get_node_status function to Session.