code: def test_partial(self):
      x = self.rs.randn(100)
      y = x + self.rs.randn(100)
      z = x + self.rs.randn(100)
  
      p = lm._RegressionPlotter(y, z)
      _, r_orig = np.corrcoef(p.x, p.y)[0]
  
      p = lm._RegressionPlotter(y, z, y_partial=x)
      _, r_semipartial = np.corrcoef(p.x, p.y)[0]
      assert r_semipartial < r_orig
  
      p = lm._RegressionPlotter(y, z, x_partial=x, y_partial=x)
      _, r_partial = np.corrcoef(p.x, p.y)[0]
      assert r_partial < r_orig
  
      x = pd.Series(x)
      y = pd.Series(y)
      p = lm._RegressionPlotter(y, z, x_partial=x, y_partial=x)
      _, r_partial = np.corrcoef(p.x, p.y)[0]
      assert r_partial < r_orig
  
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 22 for calling the TestRegressionPlotter obj's underlying member method code with example usage: obj.test_partial() without return types