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