code: def test_scan_err1(self):
      # This test should fail when building fx for the first time
      orig_compute_test_value = theano.config.compute_test_value
      try:
          theano.config.compute_test_value = "raise"
  
          k = T.iscalar("k")
          A = T.matrix("A")
          k.tag.test_value = 3
          A.tag.test_value = np.random.rand(5, 3).astype(config.floatX)
  
          def fx(prior_result, A):
              return T.dot(prior_result, A)
  
          # Since we have to inspect the traceback,
          # we cannot simply use self.assertRaises()
          try:
              theano.scan(
                  fn=fx,
                  outputs_info=T.ones_like(A),
                  non_sequences=A,
                  n_steps=k,
              )
              assert False
          except ValueError:
              # Get traceback
              tb = sys.exc_info()[2]
              frame_infos = traceback.extract_tb(tb)
              # We should be in the "fx" function defined above
              expected = "test_compute_test_value.py"
              assert any(
                  (
                      os.path.split(frame_info[0])[1] == expected
                      and frame_info[2] == "fx"
                  )
                  for frame_info in frame_infos
              ), frame_infos
  
      finally:
          theano.config.compute_test_value = orig_compute_test_value
  
imports: from __future__ import absolute_import, print_function, division
  import os
  import sys
  import traceback
  import warnings
  import numpy
  from nose.plugins.skip import SkipTest
  import unittest
  import theano
  from theano import config
  from theano import scalar
  from theano import tensor
  from theano.gof import Apply, Op
  from theano.gof import utils
  from theano.tensor.basic import _allclose
label_desc: Use image node_id 11 for calling the TestComputeTestValue obj's underlying member method code with example usage: obj.test_scan_err1() and returns: T