code: def test_string_list():
      from pybind11_tests import (
          StringList,
          ClassWithSTLVecProperty,
          print_opaque_list,
      )
  
      l = StringList()
      l.push_back("Element 1")
      l.push_back("Element 2")
      assert (
          print_opaque_list(l) == "Opaque list: [Element 1, Element 2]"
      )
      assert l.back() == "Element 2"
  
      for i, k in enumerate(l, start=1):
          assert k == "Element {}".format(i)
      l.pop_back()
      assert print_opaque_list(l) == "Opaque list: [Element 1]"
  
      cvp = ClassWithSTLVecProperty()
      assert print_opaque_list(cvp.stringList) == "Opaque list: []"
  
      cvp.stringList = l
      cvp.stringList.push_back("Element 3")
      assert (
          print_opaque_list(cvp.stringList)
          == "Opaque list: [Element 1, Element 3]"
      )
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_string_list() without return types