from typing import List
from typing import Any
import warnings
from typing import Counter


def majority_vote(annotations: List[Any]):
    """Returns the majority vote of the annotations.

    Args:
    - annotations: A list of annotations.

    Returns:
    - The majority vote of the annotations.
    """
    # Raise an warning if the annotation list is even
    if len(annotations) % 2 == 0:
        warnings.warn("The annotation list is even. The returned vote will be random.")

    return max(Counter(annotations).items(), key=lambda x: x[1])[0]