code: def test_label_aesthetics():
      p = (
          ggplot(data, aes(y="y", label="label"))
          + geom_label(
              aes("x", label="label", fill="z"),
              size=15,
              ha="left",
              show_legend=False,
              boxcolor="red",
          )
          + geom_label(
              aes("x+1", angle="angle"),
              size=15,
              va="top",
              show_legend=False,
          )
          + geom_label(
              aes("x+2", label="label", alpha="z"),
              size=15,
              show_legend=False,
          )
          + geom_label(
              aes("x+3", color="factor(z)"), size=15, show_legend=False
          )
          + geom_label(
              aes("x+5", size="z"), ha="right", show_legend=False
          )
          + scale_size_continuous(range=(12, 30))
          + scale_y_continuous(limits=(-0.5, n - 0.5))
      )
  
      assert p == "label_aesthetics"
  
file_path: plotnine/tests/test_geom_text_label.py
imports: import os
  import numpy
  import pandas
  import pytest
  from plotnine import aes, geom_label, geom_point, geom_text, ggplot, scale_size_continuous, scale_y_continuous
  from plotnine.data import mtcars
  from plotnine.exceptions import PlotnineWarning
label_desc: Use image node_id 2 for calling a global function with example usage: test_label_aesthetics() without return types