code: def test_stanc_exception_semicolon():
      program_code = """
      parameters {
          real z
          real y
      }
      model {
          z ~ normal(0, 1);
          y ~ normal(0, 1);}
      """
      with pytest.raises(ValueError, match=r"Syntax error"):
          stan.build(program_code=program_code)
  
imports: import pytest
  import stan
label_desc: Use image node_id 4 for calling a global function with example usage: test_stanc_exception_semicolon() without return types