code: def test_cdata():
      if not theano.config.cxx:
          raise SkipTest(
              "G++ not available, so we need to skip this test."
          )
      i = TensorType("float32", (False,))()
      c = ProdOp()(i)
      i2 = GetOp()(c)
      mode = None
      if theano.config.mode == "FAST_COMPILE":
          mode = "FAST_RUN"
  
      # This should be a passthrough function for vectors
      f = theano.function([i], i2, mode=mode)
  
      v = np.random.randn(9).astype("float32")
  
      v2 = f(v)
      assert (v2 == v).all()
  
imports: from __future__ import absolute_import, print_function, division
  import os
  import numpy
  import theano
  from theano import Op, Apply, scalar
  from theano.tensor import TensorType
  from theano.gof.type import CDataType, EnumType, EnumList, CEnumType
  from unittest import TestCase
  from nose.plugins.skip import SkipTest
label_desc: Use image node_id 1 for calling a global function with example usage: test_cdata() without return types