docstr: ivy.Array instance method variant of ivy.unique_inverse. This method
  simply wraps the function, and so the docstring for ivy.unique_inverse
  also applies to this method with minimal changes.
  
  Parameters
  ----------
  self
      input array. If ``x`` has more than one dimension, the function must
      flatten ``x`` and return the unique elements of the flattened array.
  
  Returns
  -------
  ret
  
      a namedtuple ``(values, inverse_indices)`` whose
  
      - first element must have the field name ``values`` and must be an array
        containing the unique elements of ``x``. The array must have the same data
        type as ``x``.
      - second element must have the field name ``inverse_indices`` and must be
        an array containing the indices of ``values`` that reconstruct ``x``.
        The array must have the same shape as ``x`` and must have the default
        array index data type.
  
  Examples
  --------
  >>> x = ivy.array([0.3,0.4,0.7,0.4,0.2,0.8,0.5])
  >>> y = x.unique_inverse()
  >>> print(y)
  Results(values=ivy.array([0.2, 0.3, 0.4, 0.5, 0.7, 0.8]),
          inverse_indices=ivy.array([1, 2, 4, 2, 0, 5, 3]))
docstr_tok: ["ivy.Array","instance","method","variant","of","ivy.unique_inverse",".","This","method","simply","wraps","the","function",",","and","so","the","docstring","for","ivy.unique_inverse","also","applies","to","this","method","with","minimal","changes",".","Parameters","--","--","--","--","--","self","input","array",".","If","``","x","``","has","more","than","one","dimension",",","the","function","must","flatten","``","x","``","and","return","the","unique","elements","of","the","flattened","array",".","Returns","--","--","--","-","ret","a","namedtuple","``","(","values",",","inverse_indices",")","``","whose","-","first","element","must","have","the","field","name","``","values","``","and","must","be","an","array","containing","the","unique","elements","of","``","x","``",".","The","array","must","have","the","same","data","type","as","``","x","``",".","-","second","element","must","have","the","field","name","``","inverse_indices","``","and","must","be","an","array","containing","the","indices","of","``","values","``","that","reconstruct","``","x","``",".","The","array","must","have","the","same","shape","as","``","x","``","and","must","have","the","default","array","index","data","type",".","Examples","--","--","--","--",">",">",">","x","=","ivy.array","(","[","0.3,0.4,0.7,0.4,0.2,0.8,0.5","]",")",">",">",">","y","=","x.unique_inverse","(",")",">",">",">","print","(","y",")","Results","(","values=ivy.array","(","[","0.2",",","0.3",",","0.4",",","0.5",",","0.7",",","0.8","]",")",",","inverse_indices=ivy.array","(","[","1",",","2",",","4",",","2",",","0",",","5",",","3","]",")",")"]
code: def unique_inverse(self: ivy.Array) -> Tuple[ivy.Array, ivy.Array]:
      """ivy.Array instance method variant of ivy.unique_inverse. This method
      simply wraps the function, and so the docstring for ivy.unique_inverse
      also applies to this method with minimal changes.
  
      Parameters
      ----------
      self
          input array. If ``x`` has more than one dimension, the function must
          flatten ``x`` and return the unique elements of the flattened array.
  
      Returns
      -------
      ret
  
          a namedtuple ``(values, inverse_indices)`` whose
  
          - first element must have the field name ``values`` and must be an array
            containing the unique elements of ``x``. The array must have the same data
            type as ``x``.
          - second element must have the field name ``inverse_indices`` and must be
            an array containing the indices of ``values`` that reconstruct ``x``.
            The array must have the same shape as ``x`` and must have the default
            array index data type.
  
      Examples
      --------
      >>> x = ivy.array([0.3,0.4,0.7,0.4,0.2,0.8,0.5])
      >>> y = x.unique_inverse()
      >>> print(y)
      Results(values=ivy.array([0.2, 0.3, 0.4, 0.5, 0.7, 0.8]),
              inverse_indices=ivy.array([1, 2, 4, 2, 0, 5, 3]))
      """
      return ivy.unique_inverse(self._data)
  
file_path: ivy/ivy/data_classes/array/set.py
imports: import abc
  from typing import Optional, Tuple
  import ivy
label_desc: Use image node_id 4 for calling the _ArrayWithSet obj's underlying member method code with example usage: obj.unique_inverse() and returns: ivy