MDL-32662 Added get_course_groupings method