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 == ()
  
imports: import cupy
  from cupyx.scipy._lib._util import _asarray_validated, float_factorial
label_desc: Use image node_id 1 for calling a global function with example usage: _isscalar(x) and returns: unknown