code: def test_default_allocated_bytes():
      pool = pa.default_memory_pool()
      with allocate_bytes(pool, 1024):
          check_allocated_bytes(pool)
          assert pool.bytes_allocated() == pa.total_allocated_bytes()
  
imports: import contextlib
  import os
  import signal
  import subprocess
  import sys
  import weakref
  import pyarrow
  import pytest
label_desc: Use image node_id 4 for calling a global function with example usage: test_default_allocated_bytes() without return types