code: def test_reallocation_f(capture, msg):
      with capture:
          create_and_destroy(4, 0.5)
      assert msg(capture) == strip_comments(
          """
          noisy new          # preallocation needed before invoking placement-new overload
          noisy delete       # deallocation of preallocated storage
          noisy new          # Factory pointer allocation
          NoisyAlloc(int 4)  # factory pointer construction
          ---
          ~NoisyAlloc()  # Destructor
          noisy delete   # operator delete
      """
      )
  
imports: import re
  import pytest
  from pybind11_tests import ConstructorStats
  from pybind11_tests import factory_constructors
  from pybind11_tests.factory_constructors import tag
label_desc: Use image node_id 15 for calling a global function with example usage: test_reallocation_f(capture, msg) without return types