def get_cohorted_commentables(course_key):
 course_cohort_settings = get_course_cohort_settings(course_key)
 if (not course_cohort_settings.is_cohorted):
  ans = set()
 else:
  ans = set(course_cohort_settings.cohorted_discussions)
 return ans

def get_cohorted_commentables ( course_key ) : course_cohort_settings = get_course_cohort_settings ( course_key ) if ( not course_cohort_settings . is_cohorted ) : ans = set ( ) else : ans = set ( course_cohort_settings . cohorted_discussions ) return ans
given a course_key return a set of strings representing cohorted commentables .