code: def validate_values(func, dic):
      
      for value_name, value in dic.items():
          if not func(value):
              raise ValueError('{} can not be {}'.format(value_name, value))
docs: Validate each value in ``dic`` by passing it through ``func``.
      Raise a ``ValueError`` if ``func`` does not return ``True``.