code: def test_simple_bar(explainer):
      """Check that the bar plot is unchanged."""
      shap_values = explainer(explainer.data)
      fig = plt.figure()
      shap.plots.bar(shap_values, show=False)
      plt.tight_layout()
      return fig
  
file_path: shap/tests/plots/test_bar.py
imports: import matplotlib.pyplot
  import numpy
  import pytest
  import shap
  from shap.utils._exceptions import DimensionError
label_desc: Use image node_id 3 for calling a global function with example usage: test_simple_bar(explainer) and returns: fig