#NEWLINE# def wrap_loader_context( function , context ) : #NEWLINE# #INDENT# 'Wrap functions that receive loader_context to contain the context\n    "pre-loaded" and expose a interface that receives only one argument\n    ' #NEWLINE# if ( 'loader_context' in get_func_args ( function ) ) : #NEWLINE# #INDENT# return partial ( function , loader_context = context ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return function