code: def substring_presence_predict_proba(substring):
      @_apply_to_list
      def predict_proba(doc):
          return [0, 1] if substring in doc else [1, 0]
  
      return predict_proba
  
file_path: eli5/tests/test_lime.py
imports: from __future__ import absolute_import
  import numpy
  from sklearn.feature_extraction.text import HashingVectorizer, CountVectorizer
  from sklearn.naive_bayes import MultinomialNB
  from sklearn.tree import DecisionTreeClassifier
  from sklearn.pipeline import make_pipeline
  import pytest
  from eli5.lime import TextExplainer
  from eli5.formatters import format_as_text
  from .utils import format_as_all, check_targets_scores
label_desc: Use image node_id 9 for calling a global function with example usage: substring_presence_predict_proba(substring) and returns: predict_proba, unknown