human
I wrote the below code

    marker = request.node.get_marker('use_introspection')
    if marker:
        os.environ['SPY_TEST_USE_INTROSPECTION'] = 'True'
    else:
        try:
            os.environ.pop('SPY_TEST_USE_INTROSPECTION')
        except KeyError:
            pass
    app = initialize()
    (options, args) = get_options()
    window = run_spyder(app, options, args)
    def close_window():
        window.close()
    request.addfinalizer(close_window)
    return window

What's a good function header?

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

@pytest.fixture
def main_window(request):