code: def asscalar(a):
      """
      Convert an array of size 1 to its scalar equivalent.
  
      .. deprecated:: 1.16
  
          Deprecated, use `numpy.ndarray.item()` instead.
  
      Parameters
      ----------
      a : ndarray
          Input array of size 1.
  
      Returns
      -------
      out : scalar
          Scalar representation of `a`. The output data type is the same type
          returned by the input's `item` method.
  
      Examples
      --------
      >>> np.asscalar(np.array([24]))
      24
  
      """
  
      # 2018-10-10, 1.16
      warnings.warn(
          "np.asscalar(a) is deprecated since NumPy v1.16, use "
          "a.item() instead",
          DeprecationWarning,
          stacklevel=1,
      )
      return a.item()
  
imports: from __future__ import division, absolute_import, print_function
  import functools
  import warnings
  import numpy.core.numeric
  from numpy.core.numeric import asarray, asanyarray, isnan, zeros
  from numpy.core.overrides import set_module
  from numpy.core import overrides
  from .ufunclike import isneginf, isposinf
label_desc: Use image node_id 19 for calling a global function with example usage: asscalar(a) and returns: a