code: def _check_points(points):
      descending_dimensions = []
      grid = []
      for i, p in enumerate(points):
          # early make points float
          # see https://github.com/scipy/scipy/pull/17230
          p = np.asarray(p, dtype=float)
          if not np.all(p[1:] > p[:-1]):
              if np.all(p[1:] < p[:-1]):
                  # input is descending, so make it ascending
                  descending_dimensions.append(i)
                  p = np.flip(p)
              else:
                  raise ValueError(
                      "The points in dimension %d must be strictly "
                      "ascending or descending" % i
                  )
          # see https://github.com/scipy/scipy/issues/17716
          p = np.ascontiguousarray(p)
          grid.append(p)
      return tuple(grid), tuple(descending_dimensions)
  
imports: import itertools
  import warnings
  import numpy
  from .interpnd import _ndim_coords_from_arrays
  from ._cubic import PchipInterpolator
  from ._rgi_cython import evaluate_linear_2d, find_indices
  from ._bsplines import make_interp_spline
  from ._fitpack2 import RectBivariateSpline
label_desc: Use image node_id 1 for calling a global function with example usage: _check_points(points) and returns: tuple,  tuple