def _get_course_cohort_settings_representation(course, course_cohort_settings):
 (cohorted_course_wide_discussions, cohorted_inline_discussions) = get_cohorted_discussions(course, course_cohort_settings)
 return {'id': course_cohort_settings.id, 'is_cohorted': course_cohort_settings.is_cohorted, 'cohorted_inline_discussions': cohorted_inline_discussions, 'cohorted_course_wide_discussions': cohorted_course_wide_discussions, 'always_cohort_inline_discussions': course_cohort_settings.always_cohort_inline_discussions}

def _get_course_cohort_settings_representation ( course , course_cohort_settings ) : ( cohorted_course_wide_discussions , cohorted_inline_discussions ) = get_cohorted_discussions ( course , course_cohort_settings ) return { 'id' : course_cohort_settings . id , 'is_cohorted' : course_cohort_settings . is_cohorted , 'cohorted_inline_discussions' : cohorted_inline_discussions , 'cohorted_course_wide_discussions' : cohorted_course_wide_discussions , 'always_cohort_inline_discussions' : course_cohort_settings . always_cohort_inline_discussions }
returns a json representation of a course cohort settings .