def _get_fake_course_info(course_id, include_expired=False):
 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

def _get_fake_course_info ( course_id , include_expired = False ) : 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
get a course from the courses array .