def _get_borrowing_getitem(context, seqty):
    retty = seqty.dtype
    getitem_impl = context.get_function('getitem',
                                        signature(retty, seqty, types.intp))
    def wrap(builder, args):
        ret = getitem_impl(builder, args)
        if context.enable_nrt:
            context.nrt_decref(builder, retty, ret)
        return ret

    return wrap
Return a getitem() implementation that doesn't incref its result.
dataset/ETHPy150Open numba/numba/numba/targets/arrayobj.py/_get_borrowing_getitem