code: def test_violin_with_invalid_plot_type():
      with pytest.raises(
          ValueError, match="plot_type: Expected one of "
      ):
          shap.plots.violin(
              np.random.randn(20, 5), plot_type="nonsense"
          )
  
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 1 for calling a global function with example usage: test_violin_with_invalid_plot_type() without return types