code: def test_vector_invalid_getitem():
      v = vector([1, 2, 3])
      with raises(IndexError):
          v[-4]
      with raises(IndexError):
          v[3]
  
imports: from dlib import vector, vectors, vectorss, dot
  from pytest import raises
label_desc: Use image node_id 7 for calling a global function with example usage: test_vector_invalid_getitem() without return types