def get_node_labels(session):
    """Returns all node labels in use in the database."""
    result = session.run("MATCH (n) RETURN DISTINCT labels(n) as label")
    labels = []
    for record in result:
        labels.append(record.get("label")[0])
    return labels