#NEWLINE# def cached_api_from_api( backed_api ) : #NEWLINE# #INDENT# new_api = OpenCenterApi ( ) #NEWLINE# for ( name , backend ) in backed_api . model_list . items ( ) : #NEWLINE# #INDENT# abst = abstraction . CachedAbstraction ( new_api , backend . model , name , backend ) #NEWLINE# new_api . add_model ( name , abst ) #NEWLINE# #UNINDENT# return new_api