def serialize_node(node_record):
    """
    Creates a dictionary containing the attributes of a neo4j Node object
    Necessary to make Node object attributes serializable for JSON conversion
    :param node_record: Neo4j record containing a Node object
    :return: Dictionary containing Node attributes
    """
    node_dict = {
        'id': node_record.id,
        'labels': [],
        'properties': {}
    }

    # Get labels
    for label in node_record.labels:
        node_dict['labels'].append(label)

    # Get properties
    for key in node_record.keys():
        node_dict['properties'][key] = node_record.get(key)

    return node_dict