code: def test_plot_title_and_aes_label():
      spec_list = gg.labs(title="New plot title", x="New X label")
      assert isinstance(spec_list, FeatureSpecArray)
      for spec in spec_list.elements():
          assert isinstance(spec, FeatureSpec)
          assert spec.kind in ("scale", "ggtitle")
          if spec.kind == "ggtitle":
              assert spec.props()["text"] == "New plot title"
          else:
              assert spec.props()["aesthetic"] == "x"
              assert spec.props()["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 6 for calling a global function with example usage: test_plot_title_and_aes_label() without return types