code: def test_inplace_add():
      p = _p = ggplot(data)
  
      p += aes("x", "y")
      assert p is _p
  
      p += geom_point()
      assert p is _p
  
      p += stat_identity()
      assert p is _p
  
      p += scale_x_continuous()
      assert p is _p
  
      with pytest.warns(PlotnineWarning):
          # Warning for; replacing existing scale added above
          p += xlim(0, 10)
          assert p is _p
  
      p += lims(y=(0, 10))
      assert p is _p
  
      p += labs(x="x")
      assert p is _p
  
      p += coord_trans()
      assert p is _p
  
      p += facet_null()
      assert p is _p
  
      p += annotate("point", 5, 5, color="red", size=5)
      assert p is _p
  
      p += guides()
      assert p is _p
  
      p += theme_gray()
      assert p is _p
  
      th = _th = theme_gray()
      th += theme(aspect_ratio=1)
      assert th is _th
  
imports: from copy import deepcopy
  import numpy
  import pandas
  import pytest
  from plotnine import aes, after_scale, after_stat, annotate, coord_trans, facet_null, geom_bar, geom_histogram, geom_line, geom_point, ggplot, ggtitle, guides, labs, lims, scale_x_continuous, stage, stat_identity, theme, theme_gray, xlab, xlim, ylab
  from plotnine.exceptions import PlotnineError, PlotnineWarning
  from plotnine.mapping.aes import is_valid_aesthetic
label_desc: Use image node_id 14 for calling a global function with example usage: test_inplace_add() without return types