def minorbase(basepile):
    c = Counter(basepile)
    if len(list(c.elements())) > 1:
        return c.most_common(2)[-1]
    else:
        return c.most_common()[0]
Conceptually part of `s3_iter_bucket`, but must remain top-level method because
dataset/ETHPy150Open adamewing/bamsurgeon/bamsurgeon/common.py/minorbase--crossover with--dataset/ETHPy150Open piskvorky/smart_open/smart_open/smart_open_lib.py/s3_iter_bucket_process_key