human
Here's a good function header given the following:
I wrote the below code

    def check_job_state(state):
        return (lambda job: (job.status == state))
    status = request.jt.cluster_status()
    alljobs = []
    runningjobs = filter(check_job_state('RUNNING'), alljobs)
    completedjobs = filter(check_job_state('COMPLETED'), alljobs)
    failedjobs = filter(check_job_state('FAILED'), alljobs)
    killedjobs = filter(check_job_state('KILLED'), alljobs)
    jobqueues = request.jt.queues()
    return render('jobbrowser.html', request, {'clusterstatus': status, 'queues': jobqueues, 'alljobs': alljobs, 'runningjobs': runningjobs, 'failedjobs': failedjobs, 'killedjobs': killedjobs, 'completedjobs': completedjobs})

What's a good function header?
assistant
#Here's a good function header.

def jobbrowser(request):