code: def test_logging_memory_pool(capfd):
      pool = pa.logging_memory_pool(pa.default_memory_pool())
      check_allocated_bytes(pool)
      out, err = capfd.readouterr()
      assert err == ""
      assert out.count("Allocate:") > 0
      assert out.count("Allocate:") == out.count("Free:")
  
imports: import contextlib
  import os
  import signal
  import subprocess
  import sys
  import weakref
  import pyarrow
  import pytest
label_desc: Use image node_id 6 for calling a global function with example usage: test_logging_memory_pool(capfd) without return types