code: def test_debug_memory_pool_warn(pool_factory):
      res = run_debug_memory_pool(pool_factory.__name__, "warn")
      res.check_returncode()
      assert "Wrong size on deallocation" in res.stderr
  
imports: import contextlib
  import os
  import signal
  import subprocess
  import sys
  import weakref
  import pyarrow
  import pytest
label_desc: Use image node_id 17 for calling a global function with example usage: test_debug_memory_pool_warn(pool_factory) without return types