code: def _map_to_contiguous(ids_iterable):
      uniq_ids = {}
      n = 0
      for id_ in itertools.chain.from_iterable(ids_iterable):
          if id_ not in uniq_ids:
              uniq_ids[id_] = n
              n += 1
      return uniq_ids
  
file_path: gensim/gensim/topic_coherence/indirect_confirmation_measure.py
imports: import itertools
  import logging
  import numpy
  import scipy.sparse
  from gensim.topic_coherence.direct_confirmation_measure import aggregate_segment_sims, log_ratio_measure
label_desc: Use image node_id 6 for calling a global function with example usage: _map_to_contiguous(ids_iterable) and returns: uniq_ids