code: def test_multi_class():
      estimator = AdaGradClassifier(random_state=1)
      utils.get_classification_model_trainer()(estimator)
  
      assembler = assemblers.SklearnLinearModelAssembler(estimator)
      actual = assembler.assemble()
  
      expected = ast.VectorVal(
          [
              ast.BinNumExpr(
                  ast.BinNumExpr(
                      ast.BinNumExpr(
                          ast.BinNumExpr(
                              ast.NumVal(0.0),
                              ast.BinNumExpr(
                                  ast.FeatureRef(0),
                                  ast.NumVal(0.09686334892116512),
                                  ast.BinNumOpType.MUL,
                              ),
                              ast.BinNumOpType.ADD,
                          ),
                          ast.BinNumExpr(
                              ast.FeatureRef(1),
                              ast.NumVal(0.32572202133211947),
                              ast.BinNumOpType.MUL,
                          ),
                          ast.BinNumOpType.ADD,
                      ),
                      ast.BinNumExpr(
                          ast.FeatureRef(2),
                          ast.NumVal(-0.48444233646554424),
                          ast.BinNumOpType.MUL,
                      ),
                      ast.BinNumOpType.ADD,
                  ),
                  ast.BinNumExpr(
                      ast.FeatureRef(3),
                      ast.NumVal(-0.219719145605816),
                      ast.BinNumOpType.MUL,
                  ),
                  ast.BinNumOpType.ADD,
              ),
              ast.BinNumExpr(
                  ast.BinNumExpr(
                      ast.BinNumExpr(
                          ast.BinNumExpr(
                              ast.NumVal(0.0),
                              ast.BinNumExpr(
                                  ast.FeatureRef(0),
                                  ast.NumVal(-0.1089136473832088),
                                  ast.BinNumOpType.MUL,
                              ),
                              ast.BinNumOpType.ADD,
                          ),
                          ast.BinNumExpr(
                              ast.FeatureRef(1),
                              ast.NumVal(-0.16956003333433572),
                              ast.BinNumOpType.MUL,
                          ),
                          ast.BinNumOpType.ADD,
                      ),
                      ast.BinNumExpr(
                          ast.FeatureRef(2),
                          ast.NumVal(0.0365531256007199),
                          ast.BinNumOpType.MUL,
                      ),
                      ast.BinNumOpType.ADD,
                  ),
                  ast.BinNumExpr(
                      ast.FeatureRef(3),
                      ast.NumVal(-0.01016100116780896),
                      ast.BinNumOpType.MUL,
                  ),
                  ast.BinNumOpType.ADD,
              ),
              ast.BinNumExpr(
                  ast.BinNumExpr(
                      ast.BinNumExpr(
                          ast.BinNumExpr(
                              ast.NumVal(0.0),
                              ast.BinNumExpr(
                                  ast.FeatureRef(0),
                                  ast.NumVal(-0.16690339219780817),
                                  ast.BinNumOpType.MUL,
                              ),
                              ast.BinNumOpType.ADD,
                          ),
                          ast.BinNumExpr(
                              ast.FeatureRef(1),
                              ast.NumVal(-0.19466284646233858),
                              ast.BinNumOpType.MUL,
                          ),
                          ast.BinNumOpType.ADD,
                      ),
                      ast.BinNumExpr(
                          ast.FeatureRef(2),
                          ast.NumVal(0.2953585236360389),
                          ast.BinNumOpType.MUL,
                      ),
                      ast.BinNumOpType.ADD,
                  ),
                  ast.BinNumExpr(
                      ast.FeatureRef(3),
                      ast.NumVal(0.21288203082531384),
                      ast.BinNumOpType.MUL,
                  ),
                  ast.BinNumOpType.ADD,
              ),
          ]
      )
  
      assert utils.cmp_exprs(actual, expected)
  
imports: from lightning.classification import AdaGradClassifier
  from lightning.regression import AdaGradRegressor
  from m2cgen import assemblers, ast
  from tests import utils
label_desc: Use image node_id 3 for calling a global function with example usage: test_multi_class() without return types