docstr: ivy.Container instance method variant of ivy.unique_values. This
  method simply wraps the function and applies it on the container.
  
  Parameters
  ----------
  self : ivy.Container
      input container
  key_chains : list or dict, optional
      The key-chains to apply or not apply the method to. Default is `None`.
  to_apply : bool, optional
      If True, the method will be applied to key_chains, otherwise key_chains
      will be skipped. Default is `True`.
  prune_unapplied : bool, optional
      Whether to prune key_chains for which the function was not applied.
      Default is `False`.
  map_sequences : bool, optional
      Whether to also map method to sequences (lists, tuples).
      Default is `False`.
  out : ivy.Container, optional
      The container to return the results in. Default is `None`.
  
  Returns
  -------
  ivy.Container
      The result container with the unique values for each input key-chain.
  
  Raises
  ------
  TypeError
      If the input container is not an instance of ivy.Container.
  ValueError
      If the key_chains parameter is not None, and it is not a
      list or a dictionary.
  
  Example
  -------
  >>> x = ivy.Container(a=[1, 2, 3], b=[2, 2, 3], c=[4, 4, 4])
  >>> y = x.unique_values()
  >>> print(y)
  {
      a: ivy.array([1, 2, 3]),
      b: ivy.array([2, 3]),
      c: ivy.array([4])
  }
  
  >>> x = ivy.Container(a=[1, 2, 3], b=[2, 2, 3], c=[4, 4, 4])
  >>> y = x.unique_values(key_chains=["a", "b"])
  >>> print(y)
  {
      a: ivy.array([1, 2, 3]),
      b: ivy.array([2, 3]),
      c: [
          4,
          4,
          4
      ]
  }
docstr_tok: ["ivy.Container","instance","method","variant","of","ivy.unique_values",".","This","method","simply","wraps","the","function","and","applies","it","on","the","container",".","Parameters","--","--","--","--","--","self",":","ivy.Container","input","container","key_chains",":","list","or","dict",",","optional","The","key-chains","to","apply","or","not","apply","the","method","to",".","Default","is","`","None","`",".","to_apply",":","bool",",","optional","If","True",",","the","method","will","be","applied","to","key_chains",",","otherwise","key_chains","will","be","skipped",".","Default","is","`","True","`",".","prune_unapplied",":","bool",",","optional","Whether","to","prune","key_chains","for","which","the","function","was","not","applied",".","Default","is","`","False","`",".","map_sequences",":","bool",",","optional","Whether","to","also","map","method","to","sequences","(","lists",",","tuples",")",".","Default","is","`","False","`",".","out",":","ivy.Container",",","optional","The","container","to","return","the","results","in",".","Default","is","`","None","`",".","Returns","--","--","--","-","ivy.Container","The","result","container","with","the","unique","values","for","each","input","key-chain",".","Raises","--","--","--","TypeError","If","the","input","container","is","not","an","instance","of","ivy.Container",".","ValueError","If","the","key_chains","parameter","is","not","None",",","and","it","is","not","a","list","or","a","dictionary",".","Example","--","--","--","-",">",">",">","x","=","ivy.Container","(","a=","[","1",",","2",",","3","]",",","b=","[","2",",","2",",","3","]",",","c=","[","4",",","4",",","4","]",")",">",">",">","y","=","x.unique_values","(",")",">",">",">","print","(","y",")","{","a",":","ivy.array","(","[","1",",","2",",","3","]",")",",","b",":","ivy.array","(","[","2",",","3","]",")",",","c",":","ivy.array","(","[","4","]",")","}",">",">",">","x","=","ivy.Container","(","a=","[","1",",","2",",","3","]",",","b=","[","2",",","2",",","3","]",",","c=","[","4",",","4",",","4","]",")",">",">",">","y","=","x.unique_values","(","key_chains=","[","``","a","''",",","``","b","''","]",")",">",">",">","print","(","y",")","{","a",":","ivy.array","(","[","1",",","2",",","3","]",")",",","b",":","ivy.array","(","[","2",",","3","]",")",",","c",":","[","4",",","4",",","4","]","}"]
code: def unique_values(
      self: 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,
      out: Optional[ivy.Container] = None,
  ) -> ivy.Container:
      """ivy.Container instance method variant of ivy.unique_values. This
      method simply wraps the function and applies it on the container.
  
      Parameters
      ----------
      self : ivy.Container
          input container
      key_chains : list or dict, optional
          The key-chains to apply or not apply the method to. Default is `None`.
      to_apply : bool, optional
          If True, the method will be applied to key_chains, otherwise key_chains
          will be skipped. Default is `True`.
      prune_unapplied : bool, optional
          Whether to prune key_chains for which the function was not applied.
          Default is `False`.
      map_sequences : bool, optional
          Whether to also map method to sequences (lists, tuples).
          Default is `False`.
      out : ivy.Container, optional
          The container to return the results in. Default is `None`.
  
      Returns
      -------
      ivy.Container
          The result container with the unique values for each input key-chain.
  
      Raises
      ------
      TypeError
          If the input container is not an instance of ivy.Container.
      ValueError
          If the key_chains parameter is not None, and it is not a
          list or a dictionary.
  
      Example
      -------
      >>> x = ivy.Container(a=[1, 2, 3], b=[2, 2, 3], c=[4, 4, 4])
      >>> y = x.unique_values()
      >>> print(y)
      {
          a: ivy.array([1, 2, 3]),
          b: ivy.array([2, 3]),
          c: ivy.array([4])
      }
  
      >>> x = ivy.Container(a=[1, 2, 3], b=[2, 2, 3], c=[4, 4, 4])
      >>> y = x.unique_values(key_chains=["a", "b"])
      >>> print(y)
      {
          a: ivy.array([1, 2, 3]),
          b: ivy.array([2, 3]),
          c: [
              4,
              4,
              4
          ]
      }
      """
      return self._static_unique_values(
          self,
          key_chains=key_chains,
          to_apply=to_apply,
          prune_unapplied=prune_unapplied,
          map_sequences=map_sequences,
          out=out,
      )
  
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 6 for calling the _ContainerWithSet obj's underlying member method code with example usage: obj.unique_values() and returns: self