parameters: (x)
return_statement: return np.isscalar(x) or hasattr(x, 'shape') and x.shape == ()
docstring: Check whether x is if a scalar type, or 0-dim
docstring_summary: Check whether x is if a scalar type, or 0-dim
docstring_tokens: Check whether x is if a scalar type or 0 - dim
function: 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 == ()
function_tokens: def _isscalar ( x ) : return np . isscalar ( x ) or hasattr ( x , 'shape' ) and x . shape == ( )