code: def test_non_scalar_error():
      x0 = float64("x0")
      x = as_scalar(tensor_exp(x0))
  
      with pytest.raises(
          TypeError,
          match="The fgraph of ScalarLoop must be exclusively composed of scalar operations",
      ):
          ScalarLoop(init=[x0], constant=[], update=[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 8 for calling a global function with example usage: test_non_scalar_error() without return types