def compute_label(results):
    """
        Counts the number of 0's in a list of results, if it is greater than
        then number of 1's, output label = 0, else output label = 1 
    """
    new_result = list(results)

    num_zeros = new_result.count([0])
    num_ones = new_result.count([1])

    if num_zeros >= num_ones: return 0
    elif num_zeros < num_ones: return 1