code: def _assemble_leaf(self, node_id):
      scores = self._tree.value[node_id][0]
      if self._is_vector_output:
          score_sum = scores.sum() or 1.0
          outputs = [ast.NumVal(s / score_sum) for s in scores]
          return ast.VectorVal(outputs)
      else:
          assert len(scores) == 1, "Unexpected number of outputs"
          return ast.NumVal(scores[0])
  
file_path: m2cgen/m2cgen/assemblers/tree.py
imports: from m2cgen import ast
  from m2cgen.assemblers.base import ModelAssembler
  from m2cgen.assemblers.utils import lte
label_desc: Use image node_id 5 for calling the TreeModelAssembler obj's underlying member method code with example usage: obj._assemble_leaf(node_id) and returns: ast, ast