code: def check_compatibility(explainer):
      """Placeholder for more specific checks"""
  
      if "arrays_accepted" in explainer.model_info:
          if not explainer.model_info["arrays_accepted"]:
              raise TypeError(
                  "'predict_function' not compatible with the 'shap' package"
              )
      else:
          # data was None but now is available
          try:
              data_values = explainer.data.values[[0]]
              explainer.predict(data_values)
              explainer.model_info["arrays_accepted"] = True
          except:
              raise TypeError(
                  "'predict_function' not compatible with the 'shap' package"
              )
  
file_path: DALEX/python/dalex/dalex/wrappers/_shap/checks.py
imports: import re
  import numpy
  import pandas
  from copy import deepcopy
  import warnings
label_desc: Use image node_id 2 for calling a global function with example usage: check_compatibility(explainer) without return types