<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_detail(self, course_id):
 """ Fetches course details. Args: course_id (str):
 An edx course id. Returns: CourseDetail """

        # the request is done in behalf of the current logged in user
        resp = self._requester.get(
            urljoin(
                self._base_url,
                '/api/courses/v1/courses/{course_key}/'.format(course_key=course_id)
            )
        )

        resp.raise_for_status()

        return CourseDetail(resp.json())