def remove_duplicates(annotations):
    """Removes duplicate annotations. This is mostly used for persons when same
    person can be both actor and director.

    Args:
        annotations (List): List of annotations.

    Returns:
        List: List of annotations without duplicates.
    """
    return [
        annotation for i, annotation in enumerate(annotations)
        if not any(annotation == ann for ann in annotations[i + 1:])
    ]