code: def test_baddestroymap_c():
      if not theano.config.cxx:
          raise SkipTest(
              "G++ not available, so we need to skip this test."
          )
      x = theano.tensor.dvector()
      f = theano.function(
          [x], wb2i(x), mode=debugmode.DebugMode(check_py_code=False)
      )
      try:
          assert np.all(f([1, 2]) == [2, 4])
          assert False  # failed to raise error
      except debugmode.BadDestroyMap:
          pass
  
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 8 for calling a global function with example usage: test_baddestroymap_c() without return types