code: def test_vector(doc):
      """std::vector <-> list"""
      lst = m.cast_vector()
      assert lst == [1]
      lst.append(2)
      assert m.load_vector(lst)
      assert m.load_vector(tuple(lst))
  
      assert m.cast_bool_vector() == [True, False]
      assert m.load_bool_vector([True, False])
      assert m.load_bool_vector(tuple([True, False]))
  
      assert doc(m.cast_vector) == "cast_vector() -> List[int]"
      assert (
          doc(m.load_vector) == "load_vector(arg0: List[int]) -> bool"
      )
  
      # Test regression caused by 936: pointers to stl containers weren't castable
      assert m.cast_ptr_vector() == ["lvalue", "lvalue"]
  
imports: import pytest
  from pybind11_tests import ConstructorStats, UserType
  from pybind11_tests import stl
label_desc: Use image node_id 1 for calling a global function with example usage: test_vector(doc) without return types