code: def _origins_to_offsets(origins, w_shape):
      return tuple(x // 2 + o for x, o in zip(w_shape, origins))
  
file_path: cupy/cupyx/scipy/ndimage/_filters_core.py
imports: import warnings
  import numpy
  import cupy
  from cupy_backends.cuda.api import runtime
  from cupy import _core
  from cupy._core import internal
  from cupyx.scipy.ndimage import _util
label_desc: Use image node_id 1 for calling a global function with example usage: _origins_to_offsets(origins, w_shape) and returns: tuple