def METHOD_NAME(
    student_id, course_id, is_active=True, mode='honor', enterprise_uuid=None, force_enrollment=False
):
    """Append an enrollment to the enrollments array."""
    enrollment = {
        "created": datetime.datetime.now(),
        "mode": mode,
        "is_active": is_active,
        "course": _get_fake_course_info(course_id),
        "student": student_id,
        "enterprise_uuid": enterprise_uuid
    }
    _ENROLLMENTS.append(enrollment)
    return enrollment