def _has_fulfilled_all_milestones(user, course_id):
 return (MilestoneError() if any_unfulfilled_milestones(course_id, user.id) else ACCESS_GRANTED)

def _has_fulfilled_all_milestones ( user , course_id ) : return ( MilestoneError ( ) if any_unfulfilled_milestones ( course_id , user . id ) else ACCESS_GRANTED )
returns whether the given user has fulfilled all milestones for the given course .