code: def test_aesthetics():
      p = (
          ggplot(data, aes("x", "y"))
          + geom_point()
          + geom_abline(
              aes(slope="slope", intercept="intercept"), size=2
          )
          + geom_abline(
              aes(slope="slope", intercept="intercept+.1", alpha="z"),
              size=2,
          )
          + geom_abline(
              aes(
                  slope="slope",
                  intercept="intercept+.2",
                  linetype="factor(z)",
              ),
              size=2,
          )
          + geom_abline(
              aes(
                  slope="slope",
                  intercept="intercept+.3",
                  color="factor(z)",
              ),
              size=2,
          )
          + geom_abline(
              aes(slope="slope", intercept="intercept+.4", size="z")
          )
      )
  
      assert p == "aesthetics"
  
imports: import pandas
  import pytest
  from plotnine import aes, geom_abline, geom_point, ggplot
  from plotnine.exceptions import PlotnineWarning
label_desc: Use image node_id 1 for calling a global function with example usage: test_aesthetics() without return types