code: def test_aes_inheritance():
      # A default line (intercept = 0, slope = 1)
      p = (
          ggplot(
              data,
              aes(
                  "x",
                  "y",
                  color="factor(z)",
                  slope="slope",
                  intercept="intercept",
              ),
          )
          + geom_point(size=10, show_legend=False)
          + geom_abline(size=2)
      )
  
      assert p == "aes_inheritance"
  
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 2 for calling a global function with example usage: test_aes_inheritance() without return types