def has_infrequent_subset(candidate: tuple, L: list):
    for subset in list(itertools.combinations(candidate, (len(candidate) - 1))):
        if (list(subset) not in L):
            return True
    return False
def has_infrequent_subset(candidate: tuple, L: list):
    for subset in list(itertools.combinations(candidate, (len(candidate) - 1))):
        if (list(subset) not in L):
            return True
    return False