def METHOD_NAME(stream):
    def write(string):
        stream.write(string.replace('>>', '> >'))
        stream.write('\n')
    def write_verbose(string):
        write(string)
        print(string.replace('>>', '> >'))
    if args.verbose:
        return write_verbose
    else:
        return write