code: def __init__(self, intervals):
      self.intervals = tuple(intervals)
      self.offsets = [0]
      for u, v in self.intervals:
          self.offsets.append(self.offsets[-1] + v - u + 1)
      self.size = self.offsets.pop()
      self._idx_of_zero = self.index_above(ord("0"))
      self._idx_of_Z = min(self.index_above(ord("Z")), len(self) - 1)
  
file_path: catboost/contrib/python/hypothesis/py3/hypothesis/internal/intervalsets.py
imports: from typing import Union
label_desc: Use image node_id 2 to create a new IntervalSet object  with example: obj = IntervalSet(intervals)