def check_inclusions(item, included=[], excluded=[]):
    """Everything passes if both are empty, otherwise, we have to check if \
    empty or is present."""
    if (len(included) == 0):
        if len(excluded) == 0 or item not in excluded:
            return True
        else:
            return False
    else:
        if item in included:
            return True
    return False
def check_inclusions ( item , included = [ ] , excluded = [ ] ) : if ( len ( included ) == 0 ) : if len ( excluded ) == 0 or item not in excluded : return True else : return False else : if item in included : return True return False
Everything passes if both are empty, otherwise, we have to check if \
    empty or is present.