docstr: Compute the mean of values in the input array or container based on
  segment identifiers.
  
  Parameters
  ----------
  self : ivy.Container
      Input array or container from which to gather the input.
  segment_ids : ivy.Container
      An array of integers indicating the segment identifier for each element
      in 'self'.
  num_segments : Union[int, ivy.Container]
      An integer or array representing the total number of distinct segment IDs.
  
  Returns
  -------
  ivy.Container
      A container representing the result of a segmented mean operation.
      For each segment, it computes the mean of values in 'self' where
      'segment_ids' equals the segment ID.
  
  Example
  --------
  >>> data = ivy.Container(a=ivy.array([0., 1., 2., 4.]),
  ...                      b=ivy.array([3., 4., 5., 6.]))
  >>> segment_ids = ivy.array([0, 0, 1, 1])
  >>> num_segments = 2
  >>> result = ivy.unsorted_segment_mean(data, segment_ids, num_segments)
  >>> print(result)
  {
      a: ivy.array([0.5, 3.0]),
      b: ivy.array([3.5, 5.5])
  }
  
  >>> data = ivy.Container(a=ivy.array([0., 1., 2., 4., 5., 6.]),
  ...                      b=ivy.array([3., 4., 5., 6., 7., 8.]))
  >>> segment_ids = ivy.array([0, 0, 1, 1, 2, 2])
  >>> num_segments = 3
  >>> result = ivy.unsorted_segment_mean(data, segment_ids, num_segments)
  >>> print(result)
  {
      a: ivy.array([0.5, 3.0, 5.5]),
      b: ivy.array([3.5, 5.5, 7.5])
  }
docstr_tok: ["Compute","the","mean","of","values","in","the","input","array","or","container","based","on","segment","identifiers",".","Parameters","--","--","--","--","--","self",":","ivy.Container","Input","array","or","container","from","which","to","gather","the","input",".","segment_ids",":","ivy.Container","An","array","of","integers","indicating","the","segment","identifier","for","each","element","in","'self","'",".","num_segments",":","Union","[","int",",","ivy.Container","]","An","integer","or","array","representing","the","total","number","of","distinct","segment","IDs",".","Returns","--","--","--","-","ivy.Container","A","container","representing","the","result","of","a","segmented","mean","operation",".","For","each","segment",",","it","computes","the","mean","of","values","in","'self","'","where","'segment_ids","'","equals","the","segment","ID",".","Example","--","--","--","--",">",">",">","data","=","ivy.Container","(","a=ivy.array","(","[","0.",",","1.",",","2.",",","4",".","]",")",",","...","b=ivy.array","(","[","3.",",","4.",",","5.",",","6",".","]",")",")",">",">",">","segment_ids","=","ivy.array","(","[","0",",","0",",","1",",","1","]",")",">",">",">","num_segments","=","2",">",">",">","result","=","ivy.unsorted_segment_mean","(","data",",","segment_ids",",","num_segments",")",">",">",">","print","(","result",")","{","a",":","ivy.array","(","[","0.5",",","3.0","]",")",",","b",":","ivy.array","(","[","3.5",",","5.5","]",")","}",">",">",">","data","=","ivy.Container","(","a=ivy.array","(","[","0.",",","1.",",","2.",",","4.",",","5.",",","6",".","]",")",",","...","b=ivy.array","(","[","3.",",","4.",",","5.",",","6.",",","7.",",","8",".","]",")",")",">",">",">","segment_ids","=","ivy.array","(","[","0",",","0",",","1",",","1",",","2",",","2","]",")",">",">",">","num_segments","=","3",">",">",">","result","=","ivy.unsorted_segment_mean","(","data",",","segment_ids",",","num_segments",")",">",">",">","print","(","result",")","{","a",":","ivy.array","(","[","0.5",",","3.0",",","5.5","]",")",",","b",":","ivy.array","(","[","3.5",",","5.5",",","7.5","]",")","}"]
code: def unsorted_segment_mean(
      self: ivy.Container,
      segment_ids: Union[ivy.Array, ivy.Container],
      num_segments: Union[int, ivy.Container],
  ) -> ivy.Container:
      """Compute the mean of values in the input array or container based on
      segment identifiers.
  
      Parameters
      ----------
      self : ivy.Container
          Input array or container from which to gather the input.
      segment_ids : ivy.Container
          An array of integers indicating the segment identifier for each element
          in 'self'.
      num_segments : Union[int, ivy.Container]
          An integer or array representing the total number of distinct segment IDs.
  
      Returns
      -------
      ivy.Container
          A container representing the result of a segmented mean operation.
          For each segment, it computes the mean of values in 'self' where
          'segment_ids' equals the segment ID.
  
      Example
      --------
      >>> data = ivy.Container(a=ivy.array([0., 1., 2., 4.]),
      ...                      b=ivy.array([3., 4., 5., 6.]))
      >>> segment_ids = ivy.array([0, 0, 1, 1])
      >>> num_segments = 2
      >>> result = ivy.unsorted_segment_mean(data, segment_ids, num_segments)
      >>> print(result)
      {
          a: ivy.array([0.5, 3.0]),
          b: ivy.array([3.5, 5.5])
      }
  
      >>> data = ivy.Container(a=ivy.array([0., 1., 2., 4., 5., 6.]),
      ...                      b=ivy.array([3., 4., 5., 6., 7., 8.]))
      >>> segment_ids = ivy.array([0, 0, 1, 1, 2, 2])
      >>> num_segments = 3
      >>> result = ivy.unsorted_segment_mean(data, segment_ids, num_segments)
      >>> print(result)
      {
          a: ivy.array([0.5, 3.0, 5.5]),
          b: ivy.array([3.5, 5.5, 7.5])
      }
      """
      return self.static_unsorted_segment_mean(
          self,
          segment_ids,
          num_segments,
      )
  
imports: from typing import Optional, Union, List, Dict
  import ivy
  from ivy.data_classes.container.base import ContainerBase
label_desc: Use image node_id 26 for calling the _ContainerWithCreationExperimental obj's underlying member method code with example usage: obj.unsorted_segment_mean(segment_ids, num_segments) and returns: self