def METHOD_NAME(request, assignment_id):
    assignment = get_object_or_404(AssignedTask, pk=assignment_id)
    task = assignment.task
    submits = get_assignment_submits(assignment)
    return render_statistics(request, task, submits, [assignment])