def map_values(function, dictionary):
    """
    Transform each value using the given function. Return a new dict with transformed values.

    :param function: keys map function
    :param dictionary: dictionary to mapping
    :return: dict with changed values
    """

    return {key: function(value) for key, value in dictionary.items()}