code: def _linear_to_ast(coef, intercept):
      feature_weight_mul_ops = [
          utils.mul(ast.FeatureRef(index), ast.NumVal(value))
          for index, value in enumerate(coef)
      ]
      return utils.apply_op_to_expressions(
          ast.BinNumOpType.ADD,
          ast.NumVal(intercept),
          *feature_weight_mul_ops,
      )
  
imports: import math
  import numpy
  from m2cgen import ast
  from m2cgen.assemblers import utils
  from m2cgen.assemblers.base import ModelAssembler
label_desc: Use image node_id 1 for calling a global function with example usage: _linear_to_ast(coef, intercept) and returns: utils