from typing import Counter
import operator


def get_max_count_annotation(annotations_dic):
    """
    Get the annotation with the max count from a given `annoations_dic`
    
    annotations_dic:dict
        A dictionary of the form 
             {pvog_id : 
                [annotation_1, annotation_2, ...],
            ...}
    Return:
        unique_only:dict
            A dictionary with a pvog as key and
            the annotation with the highest occurring frequency
    """
    unique_only = {}
    for pvog in annotations_dic:
        c = Counter(annotations_dic.get(pvog))
        most_common = max(c.items(), key=operator.itemgetter(1))[0]
        unique_only[pvog] = most_common
    return unique_only