def METHOD_NAME(check):
    """Test is the device for the current queue is valid."""
    q = get_queue_or_skip()
    try:
        device = q.get_sycl_device()
    except dpctl.SyclDeviceCreationError:
        pytest.skip("Could not create default-selected device")
    check(device)