human
Complete this python program:
def jobbrowser(request):
assistant
#Here is the Python code you requested.

    """jobbrowser.jsp - a - like.
    """
    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})