code: def test_init_update_type_error():
      x0 = float32("x0")
      const = float64("const")
      x = x0 + const
      assert x.type.dtype == "float64"
      with pytest.raises(
          TypeError, match="Init and update types must be the same"
      ):
          ScalarLoop(init=[x0], constant=[const], 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 6 for calling a global function with example usage: test_init_update_type_error() without return types