code: def _center_is_true(structure, origin):
      coor = tuple(
          [oo + ss // 2 for ss, oo in zip(structure.shape, origin)]
      )
      return bool(structure[coor])
  
imports: import operator
  import warnings
  import numpy
  import cupy
  from cupy import _core
  from cupyx.scipy.ndimage import _filters_core
  from cupyx.scipy.ndimage import _util
  from cupyx.scipy.ndimage import _filters
label_desc: Use image node_id 2 for calling a global function with example usage: _center_is_true(structure, origin) and returns: bool