code: def test_named_theme_overrides_all():
      spec = (
          gg.ggplot()
          + _geom("foo")
          + theme(legend_position="bottom")
          + theme_classic()
      )
      assert "legend_position" not in spec.as_dict()["theme"]
  
imports: import lets_plot
  from lets_plot import element_blank
  from lets_plot import element_rect
  from lets_plot.plot import theme
  from lets_plot.plot.geom import _geom
  from lets_plot.plot.theme_set import theme_classic, flavor_darcula, flavor_solarized_dark
label_desc: Use image node_id 6 for calling a global function with example usage: test_named_theme_overrides_all() without return types