#NEWLINE# def arbitrary_fees_by_backend_instance( backend_ids ) : #NEWLINE# #INDENT# fees = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for direction in DIRECTIONS : #NEWLINE# #INDENT# fees_by_backend = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for backend in _available_gateway_fee_backends ( ) : #NEWLINE# #INDENT# fees_by_backend [ backend . get_api_id ( ) ] = ( backend_ids [ backend . get_api_id ( ) ] , arbitrary_fee ( ) ) #NEWLINE# #UNINDENT# fees [ direction ] = fees_by_backend #NEWLINE# #UNINDENT# return fees