code: def test_ranges_overlaps(self):
      def check_overlaps(
          chr1, start1, end1, chr2, start2, end2, expected
      ):
          i1 = ranges.make_range(chr1, start1, end1)
          i2 = ranges.make_range(chr2, start2, end2)
          self.assertEqual(ranges.ranges_overlap(i1, i2), expected)
          self.assertEqual(ranges.ranges_overlap(i2, i1), expected)
  
      check_overlaps("chr1", 0, 3, "chr1", 4, 10, False)
      check_overlaps("chr1", 0, 3, "chr1", 3, 10, False)
      check_overlaps("chr1", 0, 3, "chr1", 2, 10, True)
      check_overlaps("chr1", 0, 3, "chr1", 1, 10, True)
      check_overlaps("chr1", 0, 3, "chr1", 0, 10, True)
      check_overlaps("chr1", 0, 3, "chr1", 0, 1, True)
      check_overlaps("chr1", 0, 3, "chr1", 0, 2, True)
      check_overlaps("chr1", 0, 3, "chr1", 0, 3, True)
      check_overlaps("chr1", 0, 3, "chr1", 1, 2, True)
      check_overlaps("chr1", 0, 3, "chr1", 1, 3, True)
      check_overlaps("chr1", 0, 3, "chr1", 2, 3, True)
      check_overlaps("chr1", 0, 3, "chr1", 3, 3, False)
      check_overlaps("chr1", 1, 3, "chr1", 0, 4, True)
      check_overlaps("chr1", 1, 3, "chr1", 1, 4, True)
  
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 1 for calling the RangesTests obj's underlying member method code with example usage: obj.test_ranges_overlaps() without return types