code: def test_detector_ranges(self):
      test_ranges = [
          ranges.make_range("chr1", 0, 5),
          ranges.make_range("chr1", 8, 10),
          ranges.make_range("chr1", 12, 13),
          ranges.make_range("chr2", 2, 5),
      ]
      range_set = ranges.RangeSet(test_ranges)
      self.assertEqual(bool(range_set), True)
      self.assertEqual(len(range_set), 4)
  
      self.assertEqual(range_set.overlaps("chr1", 0), True)
      self.assertEqual(range_set.overlaps("chr1", 1), True)
      self.assertEqual(range_set.overlaps("chr1", 2), True)
      self.assertEqual(range_set.overlaps("chr1", 3), True)
      self.assertEqual(range_set.overlaps("chr1", 4), True)
      self.assertEqual(range_set.overlaps("chr1", 5), False)
      self.assertEqual(range_set.overlaps("chr1", 6), False)
      self.assertEqual(range_set.overlaps("chr1", 7), False)
      self.assertEqual(range_set.overlaps("chr1", 8), True)
      self.assertEqual(range_set.overlaps("chr1", 9), True)
      self.assertEqual(range_set.overlaps("chr1", 10), False)
      self.assertEqual(range_set.overlaps("chr1", 11), False)
      self.assertEqual(range_set.overlaps("chr1", 12), True)
      self.assertEqual(range_set.overlaps("chr1", 13), False)
      self.assertEqual(range_set.overlaps("chr1", 100), False)
      self.assertEqual(range_set.overlaps("chr1", 1000), False)
      self.assertEqual(range_set.overlaps("chr2", 0), False)
      self.assertEqual(range_set.overlaps("chr2", 1), False)
      self.assertEqual(range_set.overlaps("chr2", 2), True)
      self.assertEqual(range_set.overlaps("chr2", 3), True)
      self.assertEqual(range_set.overlaps("chr2", 4), True)
      self.assertEqual(range_set.overlaps("chr2", 5), False)
      self.assertEqual(range_set.overlaps("chr2", 6), False)
      self.assertEqual(range_set.overlaps("chr3", 3), False)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import itertools
  from absl.testing import absltest
  from absl.testing import parameterized
  import mock
  from third_party.nucleus.protos import position_pb2
  from third_party.nucleus.protos import reference_pb2
  from third_party.nucleus.protos import variants_pb2
  from third_party.nucleus.testing import test_utils
  from third_party.nucleus.util import ranges
label_desc: Use image node_id 7 for calling the RangesTests obj's underlying member method code with example usage: obj.test_detector_ranges() without return types