human
I wrote the below code

    if (not verbose):
        def dummy(*args, **kwargs):
            pass
        return (dummy, dummy, dummy)
    def print_start(thing):
        truncated_thing = thing[:66]
        num_spaces = (66 - len(truncated_thing))
        print(('%s...%s' % (truncated_thing, ('    ' * num_spaces))), end='')
        sys.stdout.flush()
    if sys.stdout.isatty():
        backspaces = [0]
        def print_status(msg):
            sys.stdout.write(('\x08' * backspaces[0]))
            sys.stdout.write(('    ' * backspaces[0]))
            sys.stdout.write(('\x08' * backspaces[0]))
            sys.stdout.write(msg)
            sys.stdout.flush()
            backspaces[0] = len(msg)
        def print_done(msg='ok'):
            sys.stdout.write(('\x08' * backspaces[0]))
            sys.stdout.write(('    ' * backspaces[0]))
            sys.stdout.write(('\x08' * backspaces[0]))
            sys.stdout.write((msg + '\n'))
            sys.stdout.flush()
            backspaces[0] = 0
    else:
        def print_status(msg):
            pass
        def print_done(msg='ok'):
            print(msg)
    return (print_start, print_status, print_done)

What's a good function header?
 Here's a good function header?
assistant
#Here's a good function header.

def _get_verbose_prints(verbose):