def _function_called_str(function_name, args, kwargs):
 template_str = '{0}({1}, {2})'
 args_str = repr(args)[1:(-1)]
 kwargs_str = ', '.join((('%s=%s' % (k, v)) for (k, v) in kwargs.items()))
 return template_str.format(function_name, args_str, kwargs_str)

def _function_called_str ( function_name , args , kwargs ) : template_str = '{0}({1}, {2})' args_str = repr ( args ) [ 1 : ( - 1 ) ] kwargs_str = ', ' . join ( ( ( '%s=%s' % ( k , v ) ) for ( k , v ) in kwargs . items ( ) ) ) return template_str . format ( function_name , args_str , kwargs_str )
helper function to output a function call .