code: def _combine(n, rs):
      """helper for ``_group_ranges``"""
      try:
          r, rs = peek(rs)
      except StopIteration:
          yield n
          return
  
      if overlap(n, r):
          yield merge(n, r)
          next(rs)
          for r in rs:
              yield r
      else:
          yield n
          for r in rs:
              yield r
  
file_path: catalyst/catalyst/utils/range.py
imports: import operator
  from six import PY2
  from toolz import peek
  from catalyst.utils.functional import foldr
label_desc: Use image node_id 6 for calling a global function with example usage: _combine(n, rs) without return types