code: def isscalarlike(x) -> bool:
      """Is x either a scalar, an array scalar, or a 0-dim array?"""
      return np.isscalar(x) or (isdense(x) and x.ndim == 0)
  
imports: import sys
  import operator
  import numpy
  from math import prod
  import scipy.sparse
  from scipy._lib._util import np_long, np_ulong
label_desc: Use image node_id 10 for calling a global function with example usage: isscalarlike(x) and returns: unknown