code: def test_ranges_overlap(self):
      # Given
      range1 = [4, 8]
      range2 = [5, 7]
      range3 = [3, 9]
      range4 = [3, 4]
      range5 = [8, 9]
      range6 = [3, 6]
      range7 = [4, 10]
  
      # When / Then
      self.assertTrue(ranges_overlap(range1, range2))
      self.assertTrue(ranges_overlap(range1, range3))
      self.assertFalse(ranges_overlap(range1, range4))
      self.assertFalse(ranges_overlap(range1, range5))
      self.assertTrue(ranges_overlap(range1, range6))
      self.assertTrue(ranges_overlap(range1, range7))
  
imports: from __future__ import unicode_literals
  import logging
  from future.builtins import object, str
  from future.utils import iteritems
  from mock import MagicMock
  from snips_nlu import __model_version__, __version__
  from snips_nlu.common.dict_utils import LimitedSizeDict
  from snips_nlu.common.log_utils import DifferedLoggingMessage
  from snips_nlu.common.utils import ranges_overlap, replace_entities_with_placeholders, parse_version
  from snips_nlu.constants import END, START
  from snips_nlu.preprocessing import tokenize_light
  from snips_nlu.tests.utils import SnipsTest
label_desc: Use image node_id 1 for calling the TestUtils obj's underlying member method code with example usage: obj.test_ranges_overlap() without return types