code: def test_context(c):
      ctx, nb_ctx = context_choices[c]
      assert ctx.handle == nb_ctx.handle.value
      assert ctx.handle == ctx.to_numba().handle.value
      ctx2 = cuda.Context.from_numba(nb_ctx)
      assert ctx.handle == ctx2.handle
      size = 10
      buf = ctx.new_buffer(size)
      assert ctx.handle == buf.context.handle
  
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 3 for calling a global function with example usage: test_context(c) without return types