def get_cohort_names(course):
 return {cohort.id: cohort.name for cohort in get_course_cohorts(course)}

def get_cohort_names ( course ) : return { cohort . id : cohort . name for cohort in get_course_cohorts ( course ) }
return a dict that maps cohort ids to names for the given course .