code: def test_instance(msg):
      with pytest.raises(TypeError) as excinfo:
          m.NoConstructor()
      assert (
          msg(excinfo.value)
          == "m.class_.NoConstructor: No constructor defined!"
      )
  
      instance = m.NoConstructor.new_instance()
  
      cstats = ConstructorStats.get(m.NoConstructor)
      assert cstats.alive() == 1
      del instance
      assert cstats.alive() == 0
  
imports: import pytest
  import env
  from pybind11_tests import ConstructorStats, UserType
  from pybind11_tests import class_
label_desc: Use image node_id 3 for calling a global function with example usage: test_instance(msg) without return types