def METHOD_NAME(course_id, include_expired=False):
    """Get a course from the courses array."""
    # if verified mode is expired and include expired is false
    # then remove the verified mode from the course.
    for course in _COURSES:
        if course_id == course['course_id']:
            if course_id in _VERIFIED_MODE_EXPIRED and not include_expired:
                course['course_modes'] = [mode for mode in course['course_modes'] if mode['slug'] != 'verified']
            return course