def METHOD_NAME(queryset, name, choice):
    if choice == "yes":
        return queryset.filter(is_instructor=True)
    elif choice == "eligible":
        # Instructor eligible but without any badge.
        # This code is kept in Q()-expressions to allow for fast condition
        # change.
        return queryset.filter(Q(instructor_eligible__gte=1) & Q(is_instructor=False))
    elif choice == "no":
        return queryset.filter(is_instructor=False)
    else:
        return queryset