code: def test_dependable_condition():
      left = ast.BinNumExpr(
          ast.IfExpr(
              ast.CompExpr(
                  ast.NumVal(1), ast.NumVal(1), ast.CompOpType.EQ
              ),
              ast.NumVal(1),
              ast.NumVal(2),
          ),
          ast.NumVal(2),
          ast.BinNumOpType.ADD,
      )
      right = ast.BinNumExpr(
          ast.NumVal(1), ast.NumVal(2), ast.BinNumOpType.DIV
      )
      bool_test = ast.CompExpr(left, right, ast.CompOpType.GTE)
      expr = ast.IfExpr(bool_test, ast.NumVal(1), ast.FeatureRef(0))
  
      expected_code = """
  double score(List<double> input) {
      double var0;
      double var1;
      if (1.0 == 1.0) {
          var1 = 1.0;
      } else {
          var1 = 2.0;
      }
      if (var1 + 2.0 >= 1.0 / 2.0) {
          var0 = 1.0;
      } else {
          var0 = input[0];
      }
      return var0;
  }
  """
  
      interpreter = DartInterpreter()
      assert_code_equal(interpreter.interpret(expr), expected_code)
  
imports: from itertools import product
  import pytest
  from m2cgen import ast
  from m2cgen.interpreters import DartInterpreter
  from tests.utils import assert_code_equal
label_desc: Use image node_id 4 for calling a global function with example usage: test_dependable_condition() without return types