def is_survey_required_for_course(course_descriptor):
 return (course_descriptor.course_survey_required and SurveyForm.get(course_descriptor.course_survey_name, throw_if_not_found=False))

def is_survey_required_for_course ( course_descriptor ) : return ( course_descriptor . course_survey_required and SurveyForm . get ( course_descriptor . course_survey_name , throw_if_not_found = False ) )
returns whether a survey is required for this course .