from typing import Optional
from typing import Dict
from typing import Any


def dict_value_not(
    dict_: dict,
    key_value: Optional[Dict[str, Any]] = None,
) -> bool:
    """
    Returns True if ``dict_[key]`` is not ``value`` for key-value pairs
    in ``key_value``.

    >>> swallow = {'mass': 'unladen', 'subspecies': 'European'}
    >>> dict_value_not(swallow, {'subspecies': 'African'})
    True
    >>> swallow = {'mass': 'unladen', 'subspecies': 'African'}
    >>> dict_value_not(swallow, {'subspecies': 'African'})
    False

    """
    if not key_value:
        return True
    for key, value in key_value.items():
        if key in dict_ and dict_[key] == value:
            return False
    return True