code: def _check_dimensionality(points, values):
      if len(points) > values.ndim:
          raise ValueError(
              "There are %d point arrays, but values has %d "
              "dimensions" % (len(points), values.ndim)
          )
      for i, p in enumerate(points):
          if not cp.asarray(p).ndim == 1:
              raise ValueError(
                  "The points in dimension %d must be "
                  "1-dimensional" % i
              )
          if not values.shape[i] == len(p):
              raise ValueError(
                  "There are %d points and %d values in "
                  "dimension %d" % (len(p), values.shape[i], i)
              )
  
imports: import itertools
  import cupy
  from cupyx.scipy.interpolate._bspline2 import make_interp_spline
  from cupyx.scipy.interpolate._cubic import PchipInterpolator
label_desc: Use image node_id 3 for calling a global function with example usage: _check_dimensionality(points, values) without return types