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