code: def test_scatter_data(self):
      p = lm._RegressionPlotter(self.df.x, self.df.y)
      x, y = p.scatter_data
      npt.assert_array_equal(x, self.df.x)
      npt.assert_array_equal(y, self.df.y)
  
      p = lm._RegressionPlotter(self.df.d, self.df.y)
      x, y = p.scatter_data
      npt.assert_array_equal(x, self.df.d)
      npt.assert_array_equal(y, self.df.y)
  
      p = lm._RegressionPlotter(self.df.d, self.df.y, x_jitter=0.1)
      x, y = p.scatter_data
      assert (x != self.df.d).any()
      npt.assert_array_less(
          np.abs(self.df.d - x), np.repeat(0.1, len(x))
      )
      npt.assert_array_equal(y, self.df.y)
  
      p = lm._RegressionPlotter(self.df.d, self.df.y, y_jitter=0.05)
      x, y = p.scatter_data
      npt.assert_array_equal(x, self.df.d)
      npt.assert_array_less(
          np.abs(self.df.y - y), np.repeat(0.1, len(y))
      )
  
imports: import warnings
  import numpy
  import matplotlib
  import matplotlib.pyplot
  import pandas
  import pytest
  import numpy.testing
  import pandas.testing
  from seaborn import regression
  from seaborn.palettes import color_palette
label_desc: Use image node_id 18 for calling the TestRegressionPlotter obj's underlying member method code with example usage: obj.test_scatter_data() without return types