code: def test_random_summary_layered_violin_with_data():
      """Check a layered violin chart."""
      rs = np.random.RandomState(0)
      fig = plt.figure()
      shap_values = rs.randn(200, 5)
      feats = rs.randn(200, 5)
      shap.summary_plot(
          shap_values,
          feats,
          plot_type="layered_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 9 for calling a global function with example usage: test_random_summary_layered_violin_with_data() and returns: fig