def is_course_in_block_structure_cache(course_key, store):
 course_usage_key = store.make_course_usage_key(course_key)
 return (BlockStructureCache(get_cache()).get(course_usage_key) is not None)

def is_course_in_block_structure_cache ( course_key , store ) : course_usage_key = store . make_course_usage_key ( course_key ) return ( BlockStructureCache ( get_cache ( ) ) . get ( course_usage_key ) is not None )
returns whether the given course is in the block structure cache .