def get_enrollments(user_id):
 return _data_api().get_course_enrollments(user_id)

def get_enrollments ( user_id ) : return _data_api ( ) . get_course_enrollments ( user_id )
retrieves all the courses a user is enrolled in .