class_docstr: Wrapper around sklearn greedy tree regressor
      
class_docstr_tok: ["Wrapper","around","sklearn","greedy","tree","regressor"]
docstr: Set complexity as number of non-leaf nodes
          
docstr_tok: ["Set","complexity","as","number","of","non-leaf","nodes"]
code: def _set_complexity(self):
      """Set complexity as number of non-leaf nodes"""
      self.complexity_ = compute_tree_complexity(self.tree_)
  
file_path: imodels/imodels/tree/cart_wrapper.py
imports: from sklearn.tree import DecisionTreeClassifier, export_text, DecisionTreeRegressor
  from imodels.util.arguments import check_fit_arguments
  from imodels.util.tree import compute_tree_complexity
label_desc: Use image node_id 2 for calling the GreedyTreeRegressor obj's underlying member method code with example usage: obj._set_complexity() without return types