def METHOD_NAME(request, instance, return_url, action=None):
    form_url = _get_form_url(instance.xform.user.username)
    instance_attachments = image_urls_dict(instance)
    url = enketo_url(
        form_url, instance.xform.id_string, instance_xml=instance.xml,
        instance_id=instance.uuid, return_url=return_url,
        instance_attachments=instance_attachments, action=action)
    return url