code: def test_lags(mode):
      n_steps = int64("n_steps")
      xtm2 = float64("xtm2")
      xtm1 = float64("xtm1")
      x = xtm2 + xtm1
  
      op = ScalarLoop(init=[xtm2, xtm1], update=[identity(xtm1), x])
      _, x = op(n_steps, xtm2, xtm1)
  
      fn = function([n_steps, xtm2, xtm1], x, mode=mode)
      np.testing.assert_allclose(fn(n_steps=5, xtm2=0, xtm1=1), 8)
  
imports: import re
  import numpy
  import pytest
  from pytensor import Mode, function
  from pytensor.scalar import Composite, as_scalar, cos, exp, float16, float32, float64, identity, int64, sin
  from pytensor.scalar.loop import ScalarLoop
  from pytensor.tensor import exp
label_desc: Use image node_id 11 for calling a global function with example usage: test_lags(mode) without return types