code: def test_random_summary_violin_with_data2():
      """Check a violin chart with shap_values as a np.array."""
      rs = np.random.RandomState(0)
      fig = plt.figure()
      shap.plots.violin(
          rs.standard_normal(size=(20, 5)),
          rs.standard_normal(size=(20, 5)),
          plot_type="violin",
          show=False,
      )
      fig.set_layout_engine("tight")
      return fig
  
file_path: shap/tests/plots/test_violin.py
imports: import matplotlib.pyplot
  import numpy
  import pytest
  import shap
  from shap.utils._exceptions import DimensionError
label_desc: Use image node_id 4 for calling a global function with example usage: test_random_summary_violin_with_data2() and returns: fig