<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def validate_values(func, dic):
 """ Validate each value in ``dic`` by passing it through ``func``. Raise a ``ValueError`` if ``func`` does not return ``True``. """

    for value_name, value in dic.items():
        if not func(value):
            raise ValueError('{} can not be {}'.format(value_name, value))