code: def test_scale():
      p = (
          ggplot(data, aes("x"))
          +
          # Red should envelop blue
          geom_violin(
              aes(y="y"), scale="width", color="red", fill="red", size=2
          )
          + geom_violin(
              aes(y="y"),
              scale="area",
              color="blue",
              fill="blue",
              size=2,
          )
          + geom_violin(
              data[:36],
              aes(y="y+25"),
              scale="count",
              color="green",
              size=2,
          )
          +
          # Yellow should envelop green
          geom_violin(
              aes(y="y+25"),
              scale="count",
              color="yellow",
              fill="yellow",
              size=2,
          )
          + geom_violin(
              data[:36],
              aes(y="y+25"),
              scale="count",
              color="green",
              fill="green",
              size=2,
          )
      )
      assert p == "scale"
  
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 1 for calling a global function with example usage: test_scale() without return types