human
I wrote the below code

    flags = ((NORMALIZE_WHITESPACE | ELLIPSIS) | IGNORE_EXCEPTION_DETAIL)
    runner = DTRunner(full_name, checker=Checker(), optionflags=flags, verbose=verbose)
    output = []
    success = True
    def out(msg):
        output.append(msg)
    class MyStderr(object, ):
        'Redirect    stderr    to    the    current    stdout'
        def write(self, msg):
            if doctest_warnings:
                sys.stdout.write(msg)
            else:
                out(msg)
    old_printoptions = np.get_printoptions()
    old_errstate = np.seterr()
    old_stderr = sys.stderr
    cwd = os.getcwd()
    tmpdir = tempfile.mkdtemp()
    sys.stderr = MyStderr()
    try:
        os.chdir(tmpdir)
        np.random.seed(None)
        for t in tests:
            t.filename = short_path(t.filename, cwd)
            (fails, successes) = runner.run(t, out=out)
            if (fails > 0):
                success = False
    finally:
        sys.stderr = old_stderr
        os.chdir(cwd)
        shutil.rmtree(tmpdir)
        np.set_printoptions(**old_printoptions)
        np.seterr(**old_errstate)
    return (success, output)

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

def _run_doctests(tests, full_name, verbose, doctest_warnings):