code: def _get_inttype(input):
      # The integer type to use for indices in the input array
      # The indices actually use byte positions and we can't just use
      # input.nbytes since that won't tell us the number of bytes between the
      # first and last elements when the array is non-contiguous
      nbytes = (
          sum(
              (x - 1) * abs(stride)
              for x, stride in zip(input.shape, input.strides)
          )
          + input.dtype.itemsize
      )
      return "int" if nbytes < (1 << 31) else "ptrdiff_t"
  
file_path: cupy/cupyx/scipy/ndimage/_util.py
imports: import warnings
  import numpy
  import cupy
label_desc: Use image node_id 9 for calling a global function with example usage: _get_inttype(input) and returns: unknown