code: def test_final():
      with pytest.raises(TypeError) as exc_info:
  
          class PyFinalChild(m.IsFinal):
              pass
  
      assert str(exc_info.value).endswith(
          "is not an acceptable base type"
      )
  
imports: import pytest
  import env
  from pybind11_tests import ConstructorStats, UserType
  from pybind11_tests import class_
label_desc: Use image node_id 26 for calling a global function with example usage: test_final() without return types