def METHOD_NAME(gpu, dA, results, ridx):
    try:
        with gpu:
            arr = dA.copy_to_host()
    except Exception as e:
        results[ridx] = e
    else:
        results[ridx] = np.all(arr == np.arange(10))