def _get_dict_value(src, value, default):
    """
    Returns a default value for a dict key if it was not found, otherwise returns the dict item.
    """

    if value in src:
        return src[value]
    else:
        return default