code: def tree_explainer(self):
      explainer = shap.TreeExplainer(self.model)
      try:
          # classification case
          predictions = self.model.predict
          probabilities = self.model.predict_proba
          return explainer, predictions, probabilities
      except:
          # regression case
          predictions = self.model.predict
          return explainer, predictions
  
file_path: explainx/lib/frameworks/shapley_values.py
imports: from operator import is_
  import shap
  from explainx.lib.utils import is_classification
  import pandas
  import numpy
label_desc: Use image node_id 2 for calling the ShapleyValues obj's underlying member method code with example usage: obj.tree_explainer() and returns: explainer,  predictions,  probabilities, explainer,  predictions