def METHOD_NAME():
    """Ensure that GlobalSettingsData objects are properly initialized
    per-thread"""
    def check_initialized(index):
        if index == 0:
            sleep(0.1)
        with pytest.raises(AttributeError):
            _global_settings_data.testing_index  # pylint: disable=W0104
        _global_settings_data.testing_index = index
        sleep(0.5)
        return (
            test_global_settings_data_obj.shared_state["_output_type"] is None
            and test_global_settings_data_obj.shared_state["root_cm"] is None
            and _global_settings_data.testing_index == index
        )
    results = [delayed(check_initialized)(index) for index in range(5)]
    assert (delayed(all)(results)).compute()