def is_a_b(variant, variant_dict):
    """
    Is the value of the variant either 'A' or 'B'? Filters out junk data
    :param variant:
    :return: True or False
    """

    return any([variant == x for x in list(variant_dict.values())])