code: def _cubic(x):
      x = cupy.asarray(x, dtype=float)
      b = BSpline.basis_element(
          cupy.asarray([-2, -1, 0, 1, 2]), extrapolate=False
      )
      out = b(x)
      out[(x < -2) | (x > 2)] = 0
      return out
  
imports: import cupy
  import cupyx.scipy.ndimage
  from cupyx.scipy.signal._iir_utils import apply_iir_sos
  from cupyx.scipy.signal._splines import _symiirorder1_nd, _symiirorder2_nd
  from cupyx.scipy.interpolate._bspline import BSpline
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: _cubic(x) and returns: out