code: def _check_cval(mode, cval, integer_output):
      if (
          mode == "constant"
          and integer_output
          and not cupy.isfinite(cval)
      ):
          raise NotImplementedError(
              "Non-finite cval is not supported for "
              "outputs with integer dtype."
          )
  
file_path: cupy/cupyx/scipy/ndimage/_util.py
imports: import warnings
  import numpy
  import cupy
label_desc: Use image node_id 2 for calling a global function with example usage: _check_cval(mode, cval, integer_output) without return types