code: def test_debug_memory_pool_disabled(pool_factory):
      res = run_debug_memory_pool(pool_factory.__name__, "")
      # The subprocess either returned successfully or was killed by a signal
      # (due to writing out of bounds), depending on the underlying allocator.
      if os.name == "posix":
          assert res.returncode <= 0
      else:
          res.check_returncode()
      assert 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 18 for calling a global function with example usage: test_debug_memory_pool_disabled(pool_factory) without return types