def check_if_mutually_exclusive(possible_args: list, kwargs):
    """ "
    Checks if at most one of the allowed arguments has been used.

    Returns False if more than one arg was used
    Returns True if at most one arg was used
    """

    count = 0
    for arg in possible_args:
        if type(arg) == str:
            if arg in kwargs:
                count += 1
        elif type(arg) == list:
            for subarg in arg:
                if subarg in kwargs:
                    count += 1
                    break

    return count <= 1