code: def test_jitter():
      data1 = pd.DataFrame({"x": [1, 2, 1, 2], "y": [1, 1, 2, 2]})
      p = (
          ggplot(data1, aes("x", "y"))
          + geom_point(size=10)
          + geom_jitter(size=10, color="red", random_state=random_state)
          + geom_jitter(
              size=10,
              color="blue",
              width=0.1,
              height=0.1,
              random_state=random_state,
          )
      )
      assert p == "jitter"
  
      with pytest.raises(PlotnineError):
          geom_jitter(position=position_jitter(), width=0.1)
  
imports: import string
  import numpy
  import pandas
  import pytest
  from plotnine import aes, after_stat, geom_bar, geom_boxplot, geom_col, geom_jitter, geom_point, geom_rect, geom_segment, geom_text, ggplot, position_dodge, position_dodge2, position_jitter, position_jitterdodge, position_nudge, position_stack, scale_y_log10, stage
  from plotnine.exceptions import PlotnineError
  from plotnine.positions.position import position
label_desc: Use image node_id 1 for calling a global function with example usage: test_jitter() without return types