'Returns the User Enrollment information.'

def get_enrollment_info(self, user, course_id):

    course = get_course_by_id(course_id, depth=0)
    is_course_staff = bool(has_access(user, 'staff', course))
    manual_enrollment_reason = 'N/A'
    if user.is_staff:
        platform_name = configuration_helpers.get_value('platform_name', settings.PLATFORM_NAME)
        enrollment_role = _('{platform_name}    Staff').format(platform_name=platform_name)
    elif is_course_staff:
        enrollment_role = _('Course    Staff')
    else:
        enrollment_role = _('Student')
    course_enrollment = CourseEnrollment.get_enrollment(user=user, course_key=course_id)
    if is_course_staff:
        enrollment_source = _('Staff')
    else:
        registration_code_redemption = RegistrationCodeRedemption.registration_code_used_for_enrollment(course_enrollment)
        paid_course_reg_item = PaidCourseRegistration.get_course_item_for_user_enrollment(user=user, course_id=course_id, course_enrollment=course_enrollment)
        if (registration_code_redemption is not None):
            enrollment_source = _('Used    Registration    Code')
        elif (paid_course_reg_item is not None):
            enrollment_source = _('Credit    Card    -    Individual')
        else:
            manual_enrollment = ManualEnrollmentAudit.get_manual_enrollment(course_enrollment)
            if (manual_enrollment is not None):
                enrollment_source = _('manually    enrolled    by    username:    {username}').format(username=manual_enrollment.enrolled_by.username)
                manual_enrollment_reason = manual_enrollment.reason
            else:
                enrollment_source = _('Manually    Enrolled')
    enrollment_date = course_enrollment.created.strftime('%B    %d,    %Y')
    currently_enrolled = course_enrollment.is_active
    course_enrollment_data = collections.OrderedDict()
    course_enrollment_data['Enrollment    Date'] = enrollment_date
    course_enrollment_data['Currently    Enrolled'] = currently_enrolled
    course_enrollment_data['Enrollment    Source'] = enrollment_source
    course_enrollment_data['Manual    (Un)Enrollment    Reason'] = manual_enrollment_reason
    course_enrollment_data['Enrollment    Role'] = enrollment_role
    return course_enrollment_data
