code: def test_case():
      x, y, z = Symbol("x"), Symbol("y"), Symbol("z")
      expr = SymbolicExpression.case(
          [(x < y, 17), (x > z, 23), (y > z, 31)]
      )
      assert (
          str(expr)
          == "case([((x < y), 17), ((x > z), 23), ((y > z), 31)])"
      )
      assert expr.evaluate({"x": 1, "y": 2, "z": 3}) == 17
      assert expr.evaluate({"x": 2, "y": 1, "z": 0}) == 23
      assert expr.evaluate({"x": 1, "y": 2, "z": 0}) == 17
      with pytest.raises(RuntimeError, match="No matching case"):
          assert expr.evaluate({"x": 2, "y": 1, "z": 3})
  
imports: import pytest
  from nni.mutable.symbol import Symbol, SymbolicExpression
label_desc: Use image node_id 3 for calling a global function with example usage: test_case() without return types