code: def test_debug_error_message():
      # tests that debug_error_message raises an
      # exception when it should.
  
      prev_value = config.compute_test_value
  
      for mode in ["ignore", "raise"]:
          try:
              config.compute_test_value = mode
  
              try:
                  op.debug_error_message("msg")
                  raised = False
              except ValueError:
                  raised = True
              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 11 for calling a global function with example usage: test_debug_error_message() without return types