human
I wrote the below code

    pytest.importorskip('xdist')
    testdir.makepyfile("\n                                import    pytest,    time\n                                @pytest.mark.parametrize('i',    list(range(30)))\n                                def    test_x(i):\n                                                assert    i    !=    22\n                ")
    (_, dom) = runandparse(testdir, '-n2')
    suite_node = dom.find_first_by_tag('testsuite')
    failed = []
    for case_node in suite_node.find_by_tag('testcase'):
        if case_node.find_first_by_tag('failure'):
            failed.append(case_node['name'])
    assert (failed == ['test_x[22]'])

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

def test_random_report_log_xdist(testdir):