code: def to_splits(
      self, k
  ) -> typing.Iterator[typing.Tuple[(int, "HistogramSplits")]]:
      for pid, (start, end), indexes in self._indexer.splits_into_k(k):
          data = self._data.intervals_slice(indexes)
          yield pid, HistogramSplits(
              pid, self._indexer.node_size, start, end, data
          )
  
file_path: FATE/python/fate/arch/histogram/_histogram_local.py
imports: import logging
  import typing
  from ._histogram_splits import HistogramSplits
  from .indexer import HistogramIndexer, Shuffler
  from .values import HistogramValuesContainer
label_desc: Use image node_id 13 for calling the Histogram obj's underlying member method code with example usage: obj.to_splits(k) without return types