code: def test_aes_label():
      spec = gg.labs(x="New X label")
      as_dict = spec.as_dict()
      assert as_dict["aesthetic"] == "x"
      assert as_dict["name"] == "New X label"
  
imports: import pytest
  import lets_plot
  from lets_plot.plot.core import FeatureSpec
  from lets_plot.plot.core import FeatureSpecArray
  from lets_plot.plot.scale import _scale
label_desc: Use image node_id 5 for calling a global function with example usage: test_aes_label() without return types