Get labels for a node from the node object