code: def test_type_of_py_nodelete():
      # If the above test deleted the class, this will segfault
      assert m.get_type_of(m.DerivedClass1()) == m.DerivedClass1
  
imports: import pytest
  import env
  from pybind11_tests import ConstructorStats, UserType
  from pybind11_tests import class_
label_desc: Use image node_id 8 for calling a global function with example usage: test_type_of_py_nodelete() without return types