code: def _is_valid_glassbox_explainer(proposed_explainer):
      try:
          is_valid_explainer = _is_valid_explainer(
              proposed_explainer, "model"
          )
          has_fit = hasattr(proposed_explainer, "fit")
          has_predict = hasattr(proposed_explainer, "predict")
          if not is_valid_explainer:
              _log.warning(
                  "Explainer not valid due to missing explain_local or global function."
              )
          if not has_fit:
              _log.warning(
                  "Explainer not valid due to missing fit function."
              )
          if not has_predict:
              _log.warning(
                  "Explainer not valid due to missing predict function."
              )
          return is_valid_explainer and has_fit and has_predict
  
      except Exception as e:
          _log.warning("Validate function threw exception {}".format(e))
          return False
  
file_path: interpret/python/interpret-core/interpret/ext/extension.py
imports: import logging
label_desc: Use image node_id 3 for calling a global function with example usage: _is_valid_glassbox_explainer(proposed_explainer) and returns: unknown, False