code: def test_scalar_udf_context(unary_func_fixture):
      # Check the memory_pool argument is properly propagated
      proxy_pool = pa.proxy_memory_pool(pa.default_memory_pool())
      _, func_name = unary_func_fixture
  
      res = pc.call_function(
          func_name,
          [pa.array([1] * 1000, type=pa.int64())],
          memory_pool=proxy_pool,
      )
      assert res == pa.array([2] * 1000, type=pa.int64())
      assert proxy_pool.bytes_allocated() == 1000 * 8
      # Destroying Python array should destroy underlying C++ memory
      res = None
      assert proxy_pool.bytes_allocated() == 0
  
imports: import pytest
  import numpy
  import pyarrow
  from pyarrow import compute
label_desc: Use image node_id 30 for calling a global function with example usage: test_scalar_udf_context(unary_func_fixture) without return types