def METHOD_NAME(request, version, format=None):
    """Provides links to upcoming and completed tasks"""
    reverse_ = partial(reverse, request=request, format=format)
    task_endpoints = {
        "upcoming": reverse_("upcoming-tasks"),
        "completed": reverse_("task-results-overview"),
    }
    return Response(task_endpoints)