import collections


def majority_label(iterable):
    """Returns the most common element in an iterable"""
    most_common_elt, _ = collections.Counter(iterable).most_common(1)[0]
    return most_common_elt