def require_cuda_ndarray(obj):
    if not is_cuda_ndarray(obj):
        raise ValueError('require an cuda ndarray object')
Raises ValueError is is_cuda_ndarray(obj) evaluates False
dataset/ETHPy150Open numba/numba/numba/cuda/cudadrv/devicearray.py/require_cuda_ndarray