code: def test_show_feature_values():
      clf = LinearRegression()
      clf.fit(np.array([[1, 0.1], [0, 0]]), np.array([0, 1]))
      res = explain_weights_sklearn(clf)
      for expl in format_as_all(res, clf, show_feature_values=True):
          assert "Value" not in expl
          assert "Weight" in expl
          assert "x0" in expl
      res = explain_prediction_sklearn(clf, np.array([1.52, 0.5]))
      for expl in format_as_all(res, clf, show_feature_values=True):
          assert "Contribution" in expl
          assert "Value" in expl
          assert "x0" in expl
          assert "1.52" in expl
      for expl in format_as_all(res, clf, show_feature_values=False):
          assert "Contribution" in expl
          assert "Value" not in expl
          assert "x0" in expl
          assert "1.52" not in expl
  
file_path: eli5/tests/test_formatters.py
imports: from __future__ import absolute_import
  import re
  import pytest
  import numpy
  from sklearn.feature_extraction.text import TfidfVectorizer
  from sklearn.linear_model import LogisticRegression, LinearRegression
  from eli5.sklearn import explain_weights_sklearn, explain_prediction_sklearn
  from eli5.formatters import fields
  from eli5.formatters.text import _SPACE
  from .utils import format_as_all, get_all_features
label_desc: Use image node_id 4 for calling a global function with example usage: test_show_feature_values() without return types