code: def test_scan_err1(self):
      # This test should fail when building fx for the first time
      k = iscalar("k")
      A = matrix("A")
      k.tag.test_value = 3
      A.tag.test_value = np.random.random((5, 3)).astype(config.floatX)
  
      def fx(prior_result, A):
          return dot(prior_result, A)
  
      with pytest.raises(ValueError) as e:
          pytensor.scan(
              fn=fx,
              outputs_info=pt.ones_like(A),
              non_sequences=A,
              n_steps=k,
          )
  
      assert str(e.traceback[0].path).endswith(
          "test_compute_test_value.py"
      )
      # We should be in the "fx" function defined above
      assert e.traceback[2].name == "fx"
  
imports: import numpy
  import pytest
  import pytensor
  import pytensor.tensor
  from pytensor import scalar
  from pytensor.configdefaults import config
  from pytensor.graph import utils
  from pytensor.graph.basic import Apply
  from pytensor.graph.op import Op
  from pytensor.graph.type import Type
  from pytensor.link.c.op import COp
  from pytensor.tensor.math import _allclose, dot
  from pytensor.tensor.type import fmatrix, iscalar, matrix, vector
label_desc: Use image node_id 12 for calling the TestComputeTestValue obj's underlying member method code with example usage: obj.test_scan_err1() and returns: dot