code: def test_reallocation_d(capture, msg):
      with capture:
          create_and_destroy(2.5, 3)
      assert msg(capture) == strip_comments(
          """
          NoisyAlloc(double 2.5)  # construction (local func variable: operator_new not called)
          noisy new               # return-by-value "new" part 1: allocation
          ~NoisyAlloc()           # moved-away local func variable destruction
          ---
          ~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 13 for calling a global function with example usage: test_reallocation_d(capture, msg) without return types