def _url_val(val, key, obj, **kwargs):
if isinstance(val, URLFor):<EOL><INDENT>return val.serialize(key, obj, **kwargs)<EOL><DEDENT>else:<EOL><INDENT>return val<EOL><DEDENT>
Function applied by `HyperlinksField` to get the correct value in the
    schema.