def log(s, header='<STR_LIT>', file=sys.stderr, nl=<NUM_LIT:1>, **kwargs):
<EOL>if not settings.verbose:<EOL><INDENT>return<EOL><DEDENT>if header:<EOL><INDENT>word_arr = s.split('<STR_LIT:U+0020>')<EOL>multi = []<EOL>word_arr.insert(<NUM_LIT:0>, '<STR_LIT>' % header.upper())<EOL>i = <NUM_LIT:0><EOL>while i < len(word_arr):<EOL><INDENT>to_add = ['<STR_LIT>']<EOL>count = <NUM_LIT:3><EOL>while count <= <NUM_LIT>:<EOL><INDENT>count += len(word_arr[i]) + <NUM_LIT:1><EOL>if count <= <NUM_LIT>:<EOL><INDENT>to_add.append(word_arr[i])<EOL>i += <NUM_LIT:1><EOL>if i == len(word_arr):<EOL><INDENT>break<EOL><DEDENT><DEDENT><DEDENT>if len(to_add) == <NUM_LIT:1>:<EOL><INDENT>to_add.append(word_arr[i])<EOL>i += <NUM_LIT:1><EOL><DEDENT>if i != len(word_arr):<EOL><INDENT>count -= len(word_arr[i]) + <NUM_LIT:1><EOL><DEDENT>to_add.append('<STR_LIT:*>' * (<NUM_LIT> - count))<EOL>multi.append('<STR_LIT:U+0020>'.join(to_add))<EOL><DEDENT>s = '<STR_LIT:\n>'.join(multi)<EOL>lines = len(multi)<EOL><DEDENT>else:<EOL><INDENT>lines = <NUM_LIT:1><EOL><DEDENT>if isinstance(nl, int) and nl > lines:<EOL><INDENT>s += '<STR_LIT:\n>' * (nl - lines)<EOL><DEDENT>return secho(s, file=file, **kwargs)<EOL>
Log the given output to stderr if and only if we are in
    verbose mode.

    If we are not in verbose mode, this is a no-op.