code: def _isscalar(x):
      """Check whether x is if a scalar type, or 0-dim"""
      return np.isscalar(x) or hasattr(x, "shape") and x.shape == ()
  
imports: from __future__ import division, print_function, absolute_import
  import warnings
  import numpy
  from scipy.special import factorial
  from scipy._lib.six import xrange
  from scipy._lib._util import _asarray_validated
label_desc: Use image node_id 1 for calling a global function with example usage: _isscalar(x) and returns: unknown