code: def test_rect_aesthetics():
      p = (
          ggplot(
              data,
              aes(xmin="xmin", xmax="xmax", ymin="ymin", ymax="ymax"),
          )
          + geom_rect()
          + geom_rect(
              aes(ymin="ymin+2", ymax="ymax+2", alpha="z"),
              show_legend=False,
          )
          + geom_rect(
              aes(ymin="ymin+4", ymax="ymax+4", fill="factor(z)")
          )
          + geom_rect(
              aes(ymin="ymin+6", ymax="ymax+6", color="factor(z+1)"),
              size=2,
          )
          + geom_rect(
              aes(ymin="ymin+8", ymax="ymax+8", linetype="factor(z+2)"),
              color="yellow",
              size=2,
          )
          +
          # for comparison with geom_tile which
          # has labels by default
          labs(x="x", y="y")
      )
  
      assert p == "rect-aesthetics"
  
file_path: plotnine/tests/test_geom_rect_tile.py
imports: import numpy
  import pandas
  from plotnine import aes, coord_trans, geom_point, geom_rect, geom_tile, ggplot, labs
label_desc: Use image node_id 1 for calling a global function with example usage: test_rect_aesthetics() without return types