def METHOD_NAME():
    """Ensure that using_output_type is thread-safe"""
    def check_correct_type(index):
        output_type = test_output_types_str[index]
        # Force a race condition
        if index == 0:
            sleep(0.1)
        with using_output_type(output_type):
            sleep(0.5)
            return cuml.global_settings.output_type == output_type
    results = [
        delayed(check_correct_type)(index)
        for index in range(len(test_output_types_str))
    ]
    assert (delayed(all)(results)).compute()