docstr: ivy.Container instance method variant of ivy.unsorted_segment_sum.
  This method simply wraps the function, and so the docstring for
  ivy.unsorted_segment_sum also applies to this method with minimal
  changes.
  
  Parameters
  ----------
  data
      input array or container from which to gather the input.
  segment_ids
      Must be in the same size with the first dimension of `data`. Has to be
      of integer data type. The index-th element of `segment_ids` array is
      the segment identifier for the index-th element of `data`.
  num_segments
      An integer or array representing the total number of distinct segment IDs.
  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 container, representing the result of a segmented sum operation.
      For each segment, it computes the sum of values in `data` where
      `segment_ids` equals to segment ID.
docstr_tok: ["ivy.Container","instance","method","variant","of","ivy.unsorted_segment_sum",".","This","method","simply","wraps","the","function",",","and","so","the","docstring","for","ivy.unsorted_segment_sum","also","applies","to","this","method","with","minimal","changes",".","Parameters","--","--","--","--","--","data","input","array","or","container","from","which","to","gather","the","input",".","segment_ids","Must","be","in","the","same","size","with","the","first","dimension","of","`","data","`",".","Has","to","be","of","integer","data","type",".","The","index-th","element","of","`","segment_ids","`","array","is","the","segment","identifier","for","the","index-th","element","of","`","data","`",".","num_segments","An","integer","or","array","representing","the","total","number","of","distinct","segment","IDs",".","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","container",",","representing","the","result","of","a","segmented","sum","operation",".","For","each","segment",",","it","computes","the","sum","of","values","in","`","data","`","where","`","segment_ids","`","equals","to","segment","ID","."]
code: def static_unsorted_segment_sum(
      data: ivy.Container,
      segment_ids: ivy.Container,
      num_segments: Union[int, 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:
      r"""ivy.Container instance method variant of ivy.unsorted_segment_sum.
      This method simply wraps the function, and so the docstring for
      ivy.unsorted_segment_sum also applies to this method with minimal
      changes.
  
      Parameters
      ----------
      data
          input array or container from which to gather the input.
      segment_ids
          Must be in the same size with the first dimension of `data`. Has to be
          of integer data type. The index-th element of `segment_ids` array is
          the segment identifier for the index-th element of `data`.
      num_segments
          An integer or array representing the total number of distinct segment IDs.
      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 container, representing the result of a segmented sum operation.
          For each segment, it computes the sum of values in `data` where
          `segment_ids` equals to segment ID.
      """
      return ContainerBase.cont_multi_map_in_function(
          "unsorted_segment_sum",
          data,
          segment_ids,
          num_segments,
          key_chains=key_chains,
          to_apply=to_apply,
          prune_unapplied=prune_unapplied,
          map_sequences=map_sequences,
      )
  
imports: from typing import Optional, Union, List, Dict
  import ivy
  from ivy.data_classes.container.base import ContainerBase
label_desc: Use image node_id 17 for calling the _ContainerWithCreationExperimental obj's underlying member method code with example usage: obj.static_unsorted_segment_sum(data, segment_ids, num_segments) and returns: ContainerBase