code: def shap_explainer(self):
      if is_classification(self.model):
          if self.ct == None:
              try:
                  explainer, pred, pred_prob = self.tree_explainer()
                  return explainer, pred, pred_prob
              except:
                  try:
                      (
                          explainer,
                          pred,
                          pred_prob,
                      ) = self.kernel_explainer()
                      return explainer, pred, pred_prob
                  except:
                      raise Exception(
                          (
                              "{} not supported. Please create an issue on Github"
                          ).format(self.model)
                      )
          else:
              try:
                  (
                      explainer,
                      pred,
                      pred_fcn,
                  ) = self.kernel_explainer_with_ct()
                  return explainer, pred, pred_fcn
              except:
                  raise Exception(
                      (
                          "{} not supported. Please create an issue on Github"
                      ).format(self.model)
                  )
      else:
          if self.ct == None:
              try:
                  explainer, pred = self.tree_explainer()
                  return explainer, pred
              except:
                  try:
                      explainer, pred = self.kernel_explainer()
                      return explainer, pred
                  except:
                      raise Exception(
                          (
                              "{} not supported. Please create an issue on Github"
                          ).format(self.model)
                      )
          else:
              try:
                  explainer, pred_fcn = self.kernel_explainer_with_ct()
                  return explainer, pred_fcn
              except:
                  raise Exception(
                      (
                          "{} not supported. Please create an issue on Github"
                      ).format(self.model)
                  )
  
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 5 for calling the ShapleyValues obj's underlying member method code with example usage: obj.shap_explainer() and returns: explainer,  pred,  pred_prob, explainer,  pred,  pred_fcn, explainer,  pred, explainer,  pred_fcn, explainer,  pred,  pred_prob, explainer,  pred