code: def test_random_summary_violin_with_data():
      """Check a violin chart."""
      np.random.seed(0)
      fig = plt.figure()
      shap.summary_plot(
          np.random.randn(20, 5),
          np.random.randn(20, 5),
          plot_type="violin",
          show=False,
      )
      fig.set_layout_engine("tight")
      return fig
  
file_path: shap/tests/plots/test_summary.py
imports: import matplotlib.pyplot
  import numpy
  import pytest
  import shap
label_desc: Use image node_id 8 for calling a global function with example usage: test_random_summary_violin_with_data() and returns: fig