code: def get_class_weight(self):
      return self.tree_model.class_weight
  
imports: from collections import defaultdict
  from typing import List, Mapping
  import numpy
  from sklearn.utils import compute_class_weight
  from dtreeviz.models.shadow_decision_tree import ShadowDecTree
  from dtreeviz.utils import criterion_remapping
label_desc: Use image node_id 8 for calling the ShadowSKDTree obj's underlying member method code with example usage: obj.get_class_weight() and returns: self