code: def ranges(ints: Iterable[int]) -> Iterator[Tuple[int, int]]:
      # Yield sorted, non-overlapping (min, max) ranges of consecutive integers
      sorted_ints = iter(sorted(set(ints)))
      try:
          start = end = next(sorted_ints)
      except StopIteration:
          return
      for v in sorted_ints:
          if v - 1 == end:
              end = v
          else:
              yield (start, end)
              start = end = v
      yield (start, end)
  
file_path: catboost/contrib/python/fonttools/fontTools/subset/svg.py
imports: from __future__ import annotations
  import re
  from functools import lru_cache
  from itertools import chain, count
  from typing import Dict, Iterable, Iterator, List, Optional, Set, Tuple
  from fontTools import ttLib
  from fontTools.subset.util import _add_method
  from fontTools.ttLib.tables.S_V_G_ import SVGDocument
label_desc: Use image node_id 10 for calling a global function with example usage: ranges(ints) without return types