<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def reduce_cuda(g, x, axes, dtype):
 """Reductions in CUDA use the thrust library for speed and have limited functionality."""

    if axes != 0:
        raise NotImplementedError("'axes' keyword is not implemented for CUDA")

    return g(x, dtype=dtype)