def print_args(output=sys.stdout):
def decorator(func):<EOL><INDENT>"""<STR_LIT>"""<EOL>@wraps(func)<EOL>def _(*args, **kwargs):<EOL><INDENT>"""<STR_LIT>"""<EOL>output.write(<EOL>"<STR_LIT>".format(str(args), str(kwargs)))<EOL>return func(*args, **kwargs)<EOL><DEDENT>return _<EOL><DEDENT>return decorator<EOL>
Decorate a function so that print arguments before calling it.

    Args:
      output: writable to print args. (Default: sys.stdout)