code: def test_binary_class():
      estimator = linear_model.LogisticRegression()
      estimator.coef_ = np.array([[1, 2]])
      estimator.intercept_ = np.array([3])
  
      assembler = assemblers.SklearnLinearModelAssembler(estimator)
      actual = assembler.assemble()
  
      expected = ast.BinNumExpr(
          ast.BinNumExpr(
              ast.NumVal(3),
              ast.BinNumExpr(
                  ast.FeatureRef(0), ast.NumVal(1), ast.BinNumOpType.MUL
              ),
              ast.BinNumOpType.ADD,
          ),
          ast.BinNumExpr(
              ast.FeatureRef(1), ast.NumVal(2), ast.BinNumOpType.MUL
          ),
          ast.BinNumOpType.ADD,
      )
  
      assert cmp_exprs(actual, expected)
  
file_path: m2cgen/tests/assemblers/test_linear_sklearn.py
imports: import numpy
  import pytest
  from sklearn import linear_model
  from m2cgen import assemblers, ast
  from tests.utils import cmp_exprs
label_desc: Use image node_id 4 for calling a global function with example usage: test_binary_class() without return types