def validate(d, key, validator):
return validator.to_python(d.get(key))<EOL>
Validate a single value in ``d`` using a formencode validator.

Example::

    email = validate(request.params, 'email', validators.Email(not_empty=True))