code: def test_input_lifetime(unary_func_fixture):
      function, func_name = unary_func_fixture
  
      proxy_pool = pa.proxy_memory_pool(pa.default_memory_pool())
      assert proxy_pool.bytes_allocated() == 0
  
      v = pa.array([1] * 1000, type=pa.int64(), memory_pool=proxy_pool)
      assert proxy_pool.bytes_allocated() == 1000 * 8
      pc.call_function(func_name, [v])
      assert proxy_pool.bytes_allocated() == 1000 * 8
      # Calling a UDF should not have kept `v` alive longer than required
      v = None
      assert proxy_pool.bytes_allocated() == 0
  
imports: import pytest
  import numpy
  import pyarrow
  from pyarrow import compute
label_desc: Use image node_id 33 for calling a global function with example usage: test_input_lifetime(unary_func_fixture) without return types