code: def test_context_allocate_del():
      bytes_allocated = global_context.bytes_allocated
      cudabuf = global_context.new_buffer(128)
      assert global_context.bytes_allocated == bytes_allocated + 128
      del cudabuf
      assert global_context.bytes_allocated == bytes_allocated
  
imports: import sys
  import sysconfig
  import pytest
  import pyarrow
  import numpy
label_desc: Use image node_id 5 for calling a global function with example usage: test_context_allocate_del() without return types