code: def test_plot_title():
      spec = gg.labs(title="New plot title")
      as_dict = spec.as_dict()
      assert as_dict["text"] == "New plot title"
  
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 4 for calling a global function with example usage: test_plot_title() without return types