code: def test_get_debug_values_success():
      # tests that get_debug_value returns values when available
      # (and the debugger is on)
  
      prev_value = config.compute_test_value
      for mode in ["ignore", "warn", "raise"]:
          try:
              config.compute_test_value = mode
  
              x = T.vector()
              x.tag.test_value = np.zeros((4,), dtype=config.floatX)
              y = np.zeros((5, 5))
  
              iters = 0
  
              for x_val, y_val in op.get_debug_values(x, y):
                  assert x_val.shape == (4,)
                  assert y_val.shape == (5, 5)
  
                  iters += 1
  
              assert iters == 1
  
          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 9 for calling a global function with example usage: test_get_debug_values_success() without return types