code: def test_stat_summary_raises_on_invalid_paremeters():
      with pytest.raises(TypeError):
          geom_point(stat_summary(funy=np.mean))
      with pytest.raises(TypeError):
          geom_point(stat_summary(does_not_exist=1))
  
file_path: plotnine/tests/test_stat_summary.py
imports: import numpy
  import pandas
  import pytest
  from plotnine import aes, geom_point, ggplot, stat_summary
label_desc: Use image node_id 8 for calling a global function with example usage: test_stat_summary_raises_on_invalid_paremeters() without return types