code: def get_course_details(self, course_id):
          
          try:
              return self.client.course(course_id).get()
          except (SlumberBaseException, ConnectionError, Timeout) as exc:
              LOGGER.exception(
                  'Failed to retrieve course enrollment details for course [%s] due to: [%s]',
                  course_id, str(exc)
              )
              return {}
docs: Query the Enrollment API for the course details of the given course_id.
  
          Args:
              course_id (str): The string value of the course's unique identifier
  
          Returns:
              dict: A dictionary containing details about the course, in an enrollment context (allowed modes, etc.)