def METHOD_NAME(typingctx, inst, data, indices, indptr, shape):
    def _construct(context, builder, sig, args):
        typ = sig.return_type
        struct = cgutils.create_struct_proxy(typ)(context, builder)
        _, data, indices, indptr, shape = args
        struct.data = data
        struct.indices = indices
        struct.indptr = indptr
        struct.shape = shape
        return impl_ret_borrowed(
            context,
            builder,
            sig.return_type,
            struct._getvalue(),
        )
    sig = inst(inst, inst.data, inst.indices, inst.indptr, inst.shape)
    return sig, _construct