(
    dict_: dict,
    key_values: Optional[Dict[str, Optional[Iterable]]] = None,
)
return True
Returns True if ``dict_[key]`` is in ``values`` for all items in
    ``key_values``.

    Also returns True if ``key_values`` is None.

    ``key`` is skipped (i.e. does not return False) if
    ``key_values[key]`` is None.

    >>> swallow = {'permutation': 'unladen'}
    >>> dict_values_in(swallow, {'permutation': ('laden', 'unladen')})
    True
    >>> dict_values_in(swallow, {'permutation': ('African', 'European')})
    False
Returns True if ``dict_[key]`` is in ``values`` for all items in
    ``key_values``.
Returns True if dict_ [ key ] is in values for all items in key_values .
def dict_values_in(
    dict_: dict,
    key_values: Optional[Dict[str, Optional[Iterable]]] = None,
) -> bool:
    """
    Returns True if ``dict_[key]`` is in ``values`` for all items in
    ``key_values``.

    Also returns True if ``key_values`` is None.

    ``key`` is skipped (i.e. does not return False) if
    ``key_values[key]`` is None.

    >>> swallow = {'permutation': 'unladen'}
    >>> dict_values_in(swallow, {'permutation': ('laden', 'unladen')})
    True
    >>> dict_values_in(swallow, {'permutation': ('African', 'European')})
    False

    """
    if not key_values:
        return True
    for key, values in key_values.items():
        if values is None:
            continue
        if dict_[key] not in values:
            return False
    return True
def dict_values_in ( dict_ : dict , key_values : Optional [ Dict [ str , Optional [ Iterable ] ] ] = None , ) -> bool : if not key_values : return True for key , values in key_values . items ( ) : if values is None : continue if dict_ [ key ] not in values : return False return True