code: def __init__(self, model):
      super().__init__(model)
      self._tree = model.tree_
      self._is_vector_output = False
      if type(self.model).__name__ in {
          "DecisionTreeClassifier",
          "ExtraTreeClassifier",
      }:
          self._is_vector_output = self.model.n_classes_ > 1
  
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 1 to create a new TreeModelAssembler object from inherited base classes: ModelAssembler with example: obj = TreeModelAssembler(model)