human
I wrote the below code

    language = language.upper()
    assert (language in main_template)
    assert (language in numerical_test_template)
    clean = os.getenv('SYMPY_TEST_CLEAN_TEMP', 'always').lower()
    if (clean not in ('always', 'success', 'never')):
        raise ValueError("SYMPY_TEST_CLEAN_TEMP    must    be    one    of    the    following:    'always',    'success'    or    'never'.")
    work = tempfile.mkdtemp(('_sympy_%s_test' % language), ('%s_' % label))
    oldwork = os.getcwd()
    os.chdir(work)
    if friendly:
        codegen(routines, language, 'codegen', to_files=True)
    else:
        code_gen = get_code_generator(language, 'codegen')
        code_gen.write(routines, 'codegen', to_files=True)
    test_strings = []
    for (fn_name, args, expected, threshold) in numerical_tests:
        call_string = ('%s(%s)-(%s)' % (fn_name, ','.join((str(arg) for arg in args)), expected))
        if (language == 'F95'):
            call_string = fortranize_double_constants(call_string)
            threshold = fortranize_double_constants(str(threshold))
        test_strings.append((numerical_test_template[language] % {'call': call_string, 'threshold': threshold}))
    if (language == 'F95'):
        f_name = 'main.f90'
    elif language.startswith('C'):
        f_name = 'main.c'
    else:
        raise NotImplementedError(('FIXME:    filename    extension    unknown    for    language:    %s' % language))
    with open(f_name, 'w') as f:
        f.write((main_template[language] % {'statements': ''.join(test_strings)}))
    compiled = try_run(commands)
    if compiled:
        executed = try_run(['./test.exe'])
    else:
        executed = False
    if ((clean == 'always') or ((clean == 'success') and compiled and executed)):
        def safe_remove(filename):
            if os.path.isfile(filename):
                os.remove(filename)
        safe_remove('codegen.f90')
        safe_remove('codegen.c')
        safe_remove('codegen.h')
        safe_remove('codegen.o')
        safe_remove('main.f90')
       ...

What's a good function header?

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

def run_test(label, routines, numerical_tests, language, commands, friendly=True):