<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_student_enrollments(self):
 """ Returns an Enrollments object with the user enrollments Returns: Enrollments: object representing the student enrollments """

        # the request is done in behalf of the current logged in user
        resp = self.requester.get(
            urljoin(self.base_url, self.enrollment_url))
        resp.raise_for_status()
        return Enrollments(resp.json())