code: def test_get_debug_values_exc():
      # tests that get_debug_value raises an exception when
      # debugger is set to raise and a value is missing
  
      prev_value = config.compute_test_value
      try:
          config.compute_test_value = "raise"
  
          x = T.vector()
  
          try:
              for x_val in op.get_debug_values(x):
                  # this assert catches the case where we
                  # erroneously get a value returned
                  assert False
              raised = False
          except AttributeError:
              raised = True
  
          # this assert catches the case where we got []
          # returned, and possibly issued a warning,
          # rather than raising an exception
          assert raised
  
      finally:
          config.compute_test_value = prev_value
  
imports: from __future__ import absolute_import, print_function, division
  import unittest
  from nose.plugins.skip import SkipTest
  import numpy
  import theano
  import theano.gof.op
  from six import string_types
  from theano.gof.type import Type, Generic
  from theano.gof.graph import Apply, Variable
  import theano.tensor
  from theano import scalar
  from theano import shared
label_desc: Use image node_id 10 for calling a global function with example usage: test_get_debug_values_exc() without return types