code: def test_holder():
      from pybind11_tests import (
          test_mismatched_holder_type_1,
          test_mismatched_holder_type_2,
      )
  
      with pytest.raises(RuntimeError) as excinfo:
          test_mismatched_holder_type_1()
  
      assert str(excinfo.value) == (
          'generic_type: type "MismatchDerived1" does not have '
          "a non-default holder type while its base "
          '"MismatchBase1" does'
      )
  
      with pytest.raises(RuntimeError) as excinfo:
          test_mismatched_holder_type_2()
  
      assert str(excinfo.value) == (
          'generic_type: type "MismatchDerived2" has a '
          "non-default holder type while its base "
          '"MismatchBase2" does not'
      )
  
imports: import pytest
label_desc: Use image node_id 4 for calling a global function with example usage: test_holder() without return types