code: def __contains__(self, elem: Union[str, int]) -> bool:
      if isinstance(elem, str):
          elem = ord(elem)
      assert 0 <= elem <= 0x10FFFF
      return any(start <= elem <= end for start, end in self.intervals)
  
file_path: catboost/contrib/python/hypothesis/py3/hypothesis/internal/intervalsets.py
imports: from typing import Union
label_desc: Use image node_id 6 for calling the IntervalSet obj's underlying member method code with example usage: obj.__contains__(elem) and returns: any