docstr: ivy.Container static 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
  ----------
  x
       input container. If ``x`` has more than one dimension, the function must
       flatten ``x`` and return the unique elements of the flattened array.
  key_chains
       The key-chains to apply or not apply the method to. Default is ``None``.
  to_apply
       If True, the method will be applied to key_chains, otherwise key_chains
       will be skipped. Default is ``True``.
  prune_unapplied
       Whether to prune key_chains for which the function was not applied.
       Default is ``False``.
  map_sequences
       Whether to also map method to sequences (lists, tuples).
      Default is ``False``.
  
  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.Container(a=ivy.array([4.,8.,3.,5.,9.,4.]),
  ...                   b=ivy.array([7,6,4,5,6,3,2]))
  >>> y = ivy.Container.static_unique_inverse(x)
  >>> print(y)
  {
      a:[values=ivy.array([3.,4.,5.,8.,9.]),inverse_indices=ivy.array([1,3,0,2,4,1])],
      b:[values=ivy.array([2,3,4,5,6,7]),inverse_indices=ivy.array([5,4,2,3,4,1,0])]
  }
docstr_tok: ["ivy.Container","static","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","--","--","--","--","--","x","input","container",".","If","``","x","``","has","more","than","one","dimension",",","the","function","must","flatten","``","x","``","and","return","the","unique","elements","of","the","flattened","array",".","key_chains","The","key-chains","to","apply","or","not","apply","the","method","to",".","Default","is","``","None","``",".","to_apply","If","True",",","the","method","will","be","applied","to","key_chains",",","otherwise","key_chains","will","be","skipped",".","Default","is","``","True","``",".","prune_unapplied","Whether","to","prune","key_chains","for","which","the","function","was","not","applied",".","Default","is","``","False","``",".","map_sequences","Whether","to","also","map","method","to","sequences","(","lists",",","tuples",")",".","Default","is","``","False","``",".","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.Container","(","a=ivy.array","(","[","4.,8.,3.,5.,9.,4",".","]",")",",","...","b=ivy.array","(","[","7,6,4,5,6,3,2","]",")",")",">",">",">","y","=","ivy.Container.static_unique_inverse","(","x",")",">",">",">","print","(","y",")","{","a",":","[","values=ivy.array","(","[","3.,4.,5.,8.,9",".","]",")",",","inverse_indices=ivy.array","(","[","1,3,0,2,4,1","]",")","]",",","b",":","[","values=ivy.array","(","[","2,3,4,5,6,7","]",")",",","inverse_indices=ivy.array","(","[","5,4,2,3,4,1,0","]",")","]","}"]
code: def _static_unique_inverse(
      x: Union[ivy.Array, ivy.NativeArray, ivy.Container],
      /,
      *,
      key_chains: Optional[
          Union[List[str], Dict[str, str], ivy.Container]
      ] = None,
      to_apply: Union[bool, ivy.Container] = True,
      prune_unapplied: Union[bool, ivy.Container] = False,
      map_sequences: Union[bool, ivy.Container] = False,
  ) -> ivy.Container:
      """ivy.Container static 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
      ----------
      x
           input container. If ``x`` has more than one dimension, the function must
           flatten ``x`` and return the unique elements of the flattened array.
      key_chains
           The key-chains to apply or not apply the method to. Default is ``None``.
      to_apply
           If True, the method will be applied to key_chains, otherwise key_chains
           will be skipped. Default is ``True``.
      prune_unapplied
           Whether to prune key_chains for which the function was not applied.
           Default is ``False``.
      map_sequences
           Whether to also map method to sequences (lists, tuples).
          Default is ``False``.
  
      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.Container(a=ivy.array([4.,8.,3.,5.,9.,4.]),
      ...                   b=ivy.array([7,6,4,5,6,3,2]))
      >>> y = ivy.Container.static_unique_inverse(x)
      >>> print(y)
      {
          a:[values=ivy.array([3.,4.,5.,8.,9.]),inverse_indices=ivy.array([1,3,0,2,4,1])],
          b:[values=ivy.array([2,3,4,5,6,7]),inverse_indices=ivy.array([5,4,2,3,4,1,0])]
      }
      """
      return ContainerBase.cont_multi_map_in_function(
          "unique_inverse",
          x,
          key_chains=key_chains,
          to_apply=to_apply,
          prune_unapplied=prune_unapplied,
          map_sequences=map_sequences,
      )
  
file_path: ivy/ivy/data_classes/container/set.py
imports: from typing import Dict, List, Optional, Union
  from ivy.data_classes.container.base import ContainerBase
  import ivy
label_desc: Use image node_id 7 for calling the _ContainerWithSet obj's underlying member method code with example usage: obj._static_unique_inverse() and returns: ContainerBase