def METHOD_NAME(request, have_threads):
    """
    Globally applied fixture that skips tests marked to be skipped when
    multithreading support is missing.
    """
    if not have_threads and request.node.get_closest_marker("skipif_missing_threads"):
        pytest.skip("skipped because missing multithreading support.")