docstr: ivy.Array instance method variant of ivy.to_scalar. This method
  simply wraps the function, and so the docstring for ivy.to_scalar also
  applies to this method with minimal changes.
  
  Parameters
  ----------
  self
      input array.
  
  Returns
  -------
  ret
      a scalar copying the element of the array ``x``.
  
  Examples
  --------
  With :class:`ivy.Array` instance method:
  
  >>> x = ivy.array([3])
  >>> y = x.to_scalar()
  >>> print(y)
  3
docstr_tok: ["ivy.Array","instance","method","variant","of","ivy.to_scalar",".","This","method","simply","wraps","the","function",",","and","so","the","docstring","for","ivy.to_scalar","also","applies","to","this","method","with","minimal","changes",".","Parameters","--","--","--","--","--","self","input","array",".","Returns","--","--","--","-","ret","a","scalar","copying","the","element","of","the","array","``","x","``",".","Examples","--","--","--","--","With",":","class",":","`","ivy.Array","`","instance","method",":",">",">",">","x","=","ivy.array","(","[","3","]",")",">",">",">","y","=","x.to_scalar","(",")",">",">",">","print","(","y",")","3"]
code: def to_scalar(self: ivy.Array) -> Number:
      """ivy.Array instance method variant of ivy.to_scalar. This method
      simply wraps the function, and so the docstring for ivy.to_scalar also
      applies to this method with minimal changes.
  
      Parameters
      ----------
      self
          input array.
  
      Returns
      -------
      ret
          a scalar copying the element of the array ``x``.
  
      Examples
      --------
      With :class:`ivy.Array` instance method:
  
      >>> x = ivy.array([3])
      >>> y = x.to_scalar()
      >>> print(y)
      3
      """
      return ivy.to_scalar(self)
  
imports: import abc
  import numpy
  from numbers import Number
  from typing import Any, Iterable, Union, Optional, Dict, Callable, List, Tuple
  import ivy
label_desc: Use image node_id 22 for calling the _ArrayWithGeneral obj's underlying member method code with example usage: obj.to_scalar() and returns: ivy