def failure_code_init(sub):
    return '''{
        if (!PyErr_Occurred()) {
            PyErr_SetString(PyExc_RuntimeError,
                "Unexpected error in an Op's C code. "
                "No Python exception was set.");
            }
        return %(id)d;
}''' % sub
Code for failure in the struct init.
dataset/ETHPy150Open rizar/attention-lvcsr/libs/Theano/theano/gof/cc.py/failure_code_init