code: def test_quantiles_input_checks():
      with pytest.raises(ValueError):
          geom_violin(aes("x", "y"), draw_quantiles=True)
      with pytest.raises(TypeError):
          geom_violin(aes("x", "y"), draw_quantiles=["A", 0.25])
      with pytest.raises(ValueError):
          geom_violin(aes("x", "y"), draw_quantiles=[0.25, 1.25])
      with pytest.raises(ValueError):
          geom_violin(aes("x", "y"), draw_quantiles=[0.0])
      with pytest.raises(ValueError):
          geom_violin(aes("x", "y"), draw_quantiles=[1.0])
      g = geom_violin(
          aes("x", "y"), draw_quantiles=np.array([0.25, 0.25])
      )
      assert isinstance(g.params["draw_quantiles"], np.ndarray)
      g = geom_violin(aes("x", "y"), draw_quantiles=0.5)
      assert isinstance(g.params["draw_quantiles"], np.ndarray)
  
file_path: plotnine/tests/test_geom_violin.py
imports: import numpy
  import pandas
  import pytest
  from plotnine import aes, coord_flip, facet_grid, geom_violin, ggplot
  from plotnine.data import mtcars
label_desc: Use image node_id 3 for calling a global function with example usage: test_quantiles_input_checks() without return types