docstr: ivy.Array instance method variant of ivy.shape. This method simply
  wraps the function, and so the docstring for ivy.shape also applies to
  this method with minimal changes.
  
  Parameters
  ----------
  self
      input array to infer the number of dimensions  for
  as_array
      Whether to return the shape as a array, default False.
  
  Returns
  -------
  ret
      Shape of the array
  
  Examples
  --------
  >>> x = ivy.array([[0.,1.,1.],[1.,0.,0.],[8.,2.,3.]])
  >>> b = x.get_num_dims()
  >>> print(b)
  2
  
  >>> x = ivy.array([[[0, 0, 0], [0, 0, 0], [0, 0, 0]],                            [[0, 0, 0], [0, 0, 0], [0, 0, 0]],                            [[0, 0, 0], [0, 0, 0], [0, 0, 0]]])
  >>> b = x.get_num_dims(as_array=False)
  >>> print(b)
  3
  
  >>> b = x.get_num_dims(as_array=True)
  >>> print(b)
  ivy.array(3)
docstr_tok: ["ivy.Array","instance","method","variant","of","ivy.shape",".","This","method","simply","wraps","the","function",",","and","so","the","docstring","for","ivy.shape","also","applies","to","this","method","with","minimal","changes",".","Parameters","--","--","--","--","--","self","input","array","to","infer","the","number","of","dimensions","for","as_array","Whether","to","return","the","shape","as","a","array",",","default","False",".","Returns","--","--","--","-","ret","Shape","of","the","array","Examples","--","--","--","--",">",">",">","x","=","ivy.array","(","[","[","0.,1.,1.","]",",","[","1.,0.,0.","]",",","[","8.,2.,3",".","]","]",")",">",">",">","b","=","x.get_num_dims","(",")",">",">",">","print","(","b",")","2",">",">",">","x","=","ivy.array","(","[","[","[","0",",","0",",","0","]",",","[","0",",","0",",","0","]",",","[","0",",","0",",","0","]","]",",","[","[","0",",","0",",","0","]",",","[","0",",","0",",","0","]",",","[","0",",","0",",","0","]","]",",","[","[","0",",","0",",","0","]",",","[","0",",","0",",","0","]",",","[","0",",","0",",","0","]","]","]",")",">",">",">","b","=","x.get_num_dims","(","as_array=False",")",">",">",">","print","(","b",")","3",">",">",">","b","=","x.get_num_dims","(","as_array=True",")",">",">",">","print","(","b",")","ivy.array","(","3",")"]
code: def get_num_dims(
      self: ivy.Array, /, *, as_array: bool = False
  ) -> int:
      """ivy.Array instance method variant of ivy.shape. This method simply
          wraps the function, and so the docstring for ivy.shape also applies to
          this method with minimal changes.
  
          Parameters
          ----------
          self
              input array to infer the number of dimensions  for
          as_array
              Whether to return the shape as a array, default False.
  
          Returns
          -------
          ret
              Shape of the array
  
          Examples
          --------
          >>> x = ivy.array([[0.,1.,1.],[1.,0.,0.],[8.,2.,3.]])
          >>> b = x.get_num_dims()
          >>> print(b)
          2
  
          >>> x = ivy.array([[[0, 0, 0], [0, 0, 0], [0, 0, 0]],\
                              [[0, 0, 0], [0, 0, 0], [0, 0, 0]],\
                              [[0, 0, 0], [0, 0, 0], [0, 0, 0]]])
          >>> b = x.get_num_dims(as_array=False)
          >>> print(b)
          3
  
          >>> b = x.get_num_dims(as_array=True)
          >>> print(b)
          ivy.array(3)
          """
      return ivy.get_num_dims(self, as_array=as_array)
  
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 32 for calling the _ArrayWithGeneral obj's underlying member method code with example usage: obj.get_num_dims() and returns: ivy