code: def _isscalar(x):
      """Check whether x is if a scalar type, or 0-dim"""
      return cupy.isscalar(x) or hasattr(x, "shape") and x.shape == ()
  
file_path: cupy/cupyx/scipy/interpolate/_cubic.py
imports: import cupy
  from cupyx.scipy.interpolate._interpolate import PPoly
label_desc: Use image node_id 1 for calling a global function with example usage: _isscalar(x) and returns: unknown