code: def test_same_out_as_inp_error():
      xtm2 = float64("xtm2")
      xtm1 = float64("xtm1")
      x = xtm2 + xtm1
  
      with pytest.raises(
          ValueError,
          match="Some inputs and outputs are the same variable",
      ):
          ScalarLoop(init=[xtm2, xtm1], update=[xtm1, x])
  
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 10 for calling a global function with example usage: test_same_out_as_inp_error() without return types