def init_stats(labels):
    """
        Initializes the statistics.
    :param labels: array with all possible labels
    :returns: json with empty statistics for all labels
    """
    stats = {}
    for i, label in enumerate(labels):
        if i == 0:
            continue
        stats[i] = {
            "label": label,
            "total": 0,
            "tp": [],
            "fp": [],
            "scores": [],
            "q": []
        }
    return stats