code: def test_pyarrow_memalloc(c, dtype):
      ctx, nb_ctx = context_choices[c]
      size = 10
      arr, cbuf = make_random_buffer(
          size, target="device", dtype=dtype, ctx=ctx
      )
  
      # wrap CudaBuffer with numba device array
      mem = cbuf.to_numba()
      darr = DeviceNDArray(
          arr.shape, arr.strides, arr.dtype, gpu_data=mem
      )
      np.testing.assert_equal(darr.copy_to_host(), arr)
  
file_path: arrow/python/pyarrow/tests/test_cuda_numba_interop.py
imports: import pytest
  import pyarrow
  import numpy
  from numba.cuda.cudadrv.devicearray import DeviceNDArray
label_desc: Use image node_id 7 for calling a global function with example usage: test_pyarrow_memalloc(c, dtype) without return types