code: def _check_origin(origin, width):
      origin = int(origin)
      if (width // 2 + origin < 0) or (width // 2 + origin >= width):
          raise ValueError("invalid origin")
      return origin
  
file_path: cupy/cupyx/scipy/ndimage/_util.py
imports: import warnings
  import numpy
  import cupy
label_desc: Use image node_id 7 for calling a global function with example usage: _check_origin(origin, width) and returns: origin