def require_cuda_ndarray(obj):
 if (not is_cuda_ndarray(obj)):
  raise ValueError('require an cuda ndarray object')

def require_cuda_ndarray ( obj ) : if ( not is_cuda_ndarray ( obj ) ) : raise ValueError ( 'require an cuda ndarray object' )
raises valueerror is is_cuda_ndarray evaluates false .