code: def test_vector_slice():
      v = vector([1, 2, 3, 4, 5])
      v_slice = v[1:4]
      assert len(v_slice) == 3
      for idx, val in enumerate([2, 3, 4]):
          assert v_slice[idx] == val
  
      v_slice = v[-3:-1]
      assert len(v_slice) == 2
      for idx, val in enumerate([3, 4]):
          assert v_slice[idx] == val
  
      v_slice = v[1:-2]
      assert len(v_slice) == 2
      for idx, val in enumerate([2, 3]):
          assert v_slice[idx] == val
  
imports: from dlib import vector, vectors, vectorss, dot
  from pytest import raises
label_desc: Use image node_id 6 for calling a global function with example usage: test_vector_slice() without return types