code: def test_vector_int():
      from pybind11_tests import VectorInt
  
      v_int = VectorInt([0, 0])
      assert len(v_int) == 2
      assert bool(v_int) is True
  
      v_int2 = VectorInt([0, 0])
      assert v_int == v_int2
      v_int2[1] = 1
      assert v_int != v_int2
  
      v_int2.append(2)
      v_int2.append(3)
      v_int2.insert(0, 1)
      v_int2.insert(0, 2)
      v_int2.insert(0, 3)
      assert str(v_int2) == "VectorInt[3, 2, 1, 0, 1, 2, 3]"
  
      v_int.append(99)
      v_int2[2:-2] = v_int
      assert v_int2 == VectorInt([3, 2, 0, 0, 99, 2, 3])
      del v_int2[1:3]
      assert v_int2 == VectorInt([3, 0, 99, 2, 3])
      del v_int2[0]
      assert v_int2 == VectorInt([0, 99, 2, 3])
  
file_path: turicreate/src/external/coremltools_wrap/coremltools/deps/pybind11/tests/test_stl_binders.py
label_desc: Use image node_id 1 for calling a global function with example usage: test_vector_int() without return types