class_docstr: Information about the decision tree. :criterion: is the name of
  the function to measure the quality of a split, :tree: holds all nodes
  of the tree, and :graphviz: is the tree rendered in graphviz .dot format.
class_docstr_tok: ["Information","about","the","decision","tree",".",":","criterion",":","is","the","name","of","the","function","to","measure","the","quality","of","a","split",",",":","tree",":","holds","all","nodes","of","the","tree",",","and",":","graphviz",":","is","the","tree","rendered","in","graphviz",".dot","format","."]
code: def __init__(
      self,
      criterion,  # type: str
      tree,  # type: NodeInfo
      graphviz,  # type: str
      is_classification,  # type: bool
  ):
      # type: (...) -> None
      self.criterion = criterion
      self.tree = tree
      self.graphviz = graphviz
      self.is_classification = is_classification
  
imports: from typing import Any, List, Tuple, Union, Optional
  import numpy
  from .base_utils import attrs
  from .formatters.features import FormattedFeatureName
label_desc: Use image node_id 1 to create a new TreeInfo object from inherited base classes: object with example: obj = TreeInfo(criterion, tree, graphviz, is_classification)