code: def test_text_explainer_show_methods():
      pytest.importorskip("IPython")
      from IPython.display import HTML
  
      text = "Hello, world!"
  
      @_apply_to_list
      def predict_proba(doc):
          return [0.0, 1.0] if "lo" in doc else [1.0, 0.0]
  
      te = TextExplainer()
      te.fit(text, predict_proba)
  
      pred_expl = te.show_prediction()
      assert isinstance(pred_expl, HTML)
      assert "lo" in pred_expl.data
  
      weight_expl = te.show_weights()
      assert isinstance(weight_expl, HTML)
      assert "lo" in weight_expl.data
  
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 7 for calling a global function with example usage: test_text_explainer_show_methods() and returns: unknown