def METHOD_NAME(request, emplid=None):
    if emplid:
        person = Person.objects.get(find_userid_or_emplid(emplid))
        visa_list = Visa.objects.visible_given_user(person)
    else:
        person = None
        visa_list = Visa.objects.visible_by_unit(Unit.sub_units(request.units))
    context = {'visa_list': visa_list, 'person': person}
    return render(request, 'visas/view_visas.html', context)