def get_course_modes(self, course_id):
details = self.get_course_details(course_id)<EOL>modes = details.get('<STR_LIT>', [])<EOL>return self._sort_course_modes([mode for mode in modes if mode['<STR_LIT>'] not in EXCLUDED_COURSE_MODES])<EOL>
Query the Enrollment API for the specific course modes that are available for the given course_id.

Arguments:
    course_id (str): The string value of the course's unique identifier

Returns:
    list: A list of course mode dictionaries.