code: def test_rangess():
      rss = rangess()
      assert len(rss) == 0
  
      rss.resize(5)
      assert len(rss) == 5
      for rs in rss:
          assert len(rs) == 0
  
      rss.clear()
      assert len(rss) == 0
  
      rs1 = ranges()
      rs1.append(range(1, 2))
      rs1.append(range(3, 4))
  
      rs2 = ranges()
      rs2.append(range(5, 6))
      rs2.append(range(7, 8))
  
      rss.extend([rs1, rs2])
      assert rss[0][0].begin == 1
      assert rss[0][1].begin == 3
      assert rss[1][0].begin == 5
      assert rss[1][1].begin == 7
      assert rss[0][0].end == 2
      assert rss[0][1].end == 4
      assert rss[1][0].end == 6
      assert rss[1][1].end == 8
  
      ser = pickle.dumps(rss, 2)
      deser = pickle.loads(ser)
      assert rss == deser
  
imports: from dlib import range, ranges, rangess
  from pytest import raises
label_desc: Use image node_id 5 for calling a global function with example usage: test_rangess() without return types