def update_course_in_cache(course_key):
 return get_block_structure_manager(course_key).update_collected()

def update_course_in_cache ( course_key ) : return get_block_structure_manager ( course_key ) . update_collected ( )
a higher order function implemented on top of the block_structure .