class_docstr: Fast overlap detection of a genomic position against a database of Ranges.
  
  Enables O(log n) computation of whether a point chr:pos falls within one of a
  large number of genomic ranges.
  
  This class does not supports overlapping or adjacent intervals. Any such
  intervals will be automatically merged together in the constructor.
  
  This class is immutable. No methods should be added that directly modify the
  ranges held by the class.
class_docstr_tok: ["Fast","overlap","detection","of","a","genomic","position","against","a","database","of","Ranges",".","Enables","O","(","log","n",")","computation","of","whether","a","point","chr",":","pos","falls","within","one","of","a","large","number","of","genomic","ranges",".","This","class","does","not","supports","overlapping","or","adjacent","intervals",".","Any","such","intervals","will","be","automatically","merged","together","in","the","constructor",".","This","class","is","immutable",".","No","methods","should","be","added","that","directly","modify","the","ranges","held","by","the","class","."]
docstr: Returns True if chr:pos overlaps with any range in this RangeSet.
  
  Uses a fast bisection algorithm to determine the overlap in O(log n) time.
  
  Args:
    chrom: str. The chromosome name.
    pos: int. The position (0-based).
  
  Returns:
    True if chr:pos overlaps with a range.
docstr_tok: ["Returns","True","if","chr",":","pos","overlaps","with","any","range","in","this","RangeSet",".","Uses","a","fast","bisection","algorithm","to","determine","the","overlap","in","O","(","log","n",")","time",".","Args",":","chrom",":","str",".","The","chromosome","name",".","pos",":","int",".","The","position","(","0-based",")",".","Returns",":","True","if","chr",":","pos","overlaps","with","a","range","."]
code: def overlaps(self, chrom: str, pos: int):
      """Returns True if chr:pos overlaps with any range in this RangeSet.
  
      Uses a fast bisection algorithm to determine the overlap in O(log n) time.
  
      Args:
        chrom: str. The chromosome name.
        pos: int. The position (0-based).
  
      Returns:
        True if chr:pos overlaps with a range.
      """
      chr_ranges = self._by_chr.get(chrom, None)
      if chr_ranges is None:
          return False
      return chr_ranges.overlaps(pos)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import collections
  import re
  from typing import Dict, Iterable, Optional, Sequence
  from absl import logging
  from etils import epath
  import intervaltree
  import six
  from third_party.nucleus.io import bed
  from third_party.nucleus.protos import position_pb2
  from third_party.nucleus.protos import range_pb2
  from third_party.nucleus.protos import reference_pb2
  from third_party.nucleus.protos import variants_pb2
label_desc: Use image node_id 11 for calling the RangeSet obj's underlying member method code with example usage: obj.overlaps(chrom, pos) and returns: chr_ranges, False