code: def c_code(self, node, name, inp, out, sub):
      a, b = inp
      (z,) = out
      return """
          if (PyArray_NDIM(%(a)s) != 1) {PyErr_SetString(PyExc_NotImplementedError, "rank(a) != 1"); %(fail)s;}
          if (PyArray_NDIM(%(b)s) != 1) {PyErr_SetString(PyExc_NotImplementedError, "rank(b) != 1"); %(fail)s;}
  
          if (PyArray_DESCR(%(a)s)->type_num != NPY_DOUBLE)
          {PyErr_SetString(PyExc_NotImplementedError, "a dtype not NPY_DOUBLE"); %(fail)s;}
  
          if (PyArray_DESCR(%(b)s)->type_num != NPY_DOUBLE)
          {PyErr_SetString(PyExc_NotImplementedError, "b's dtype not NPY_DOUBLE"); %(fail)s;}
  
          if (PyArray_DIMS(%(a)s)[0] != PyArray_DIMS(%(b)s)[0])
          {PyErr_SetString(PyExc_NotImplementedError, "a and b have different lengths"); %(fail)s;}
  
          if ((!%(z)s)
              || (PyArray_DIMS(%(z)s)[0] != PyArray_DIMS(%(b)s)[0])
              )
          {
              {Py_XDECREF(%(z)s);}
              npy_intp dims[] = {0};
              dims[0] = PyArray_DIMS(%(b)s)[0];
              %(z)s = (PyArrayObject*) PyArray_SimpleNew(1, dims, PyArray_DESCR(%(b)s)->type_num);
          }
  
          {
              for (npy_intp m = 0; m < PyArray_DIMS(%(z)s)[0]; ++m)
              {
                  ((double*)PyArray_GETPTR1(%(z)s, m))[0]
                  = 0.5
                  + ((double*)PyArray_GETPTR1(%(a)s, m))[0]
                  + ((double*)PyArray_GETPTR1(%(b)s, m))[0] ;
              }
          }
          """ % dict(
          locals(), **sub
      )
  
imports: from __future__ import absolute_import, print_function, division
  import sys
  import unittest
  from nose.plugins.skip import SkipTest
  import numpy
  from six import reraise
  from theano import config
  from theano import gof
  import theano
  from theano.compat import exc_message
  from theano.compile import debugmode
  import theano.tensor
  from theano.tests import unittest_tools
label_desc: Use image node_id 5 for calling the BROKEN_ON_PURPOSE_Add obj's underlying member method code with example usage: obj.c_code(node, name, inp, out, sub) and returns: unknown