code: def test_plot_pandas(self, astype, close_figures):
      weight = Series(self.weight, name="Weight").astype(astype)
      duration = Series(self.duration, name="Duration")
      days = Series(self.days, name="Days")
      fig = interaction_plot(
          weight, duration, days, markers=["D", "^"], ms=10
      )
      ax = fig.axes[0]
      trace = ax.get_legend().get_title().get_text()
      assert_equal(trace, "Duration")
      assert_equal(ax.get_ylabel(), "mean of Days")
      assert_equal(ax.get_xlabel(), "Weight")
  
file_path: statsmodels/statsmodels/graphics/tests/test_factorplots.py
imports: import numpy
  from numpy.testing import assert_equal, assert_raises
  from pandas import Series
  import pytest
  from statsmodels.graphics.factorplots import _recode, interaction_plot
label_desc: Use image node_id 4 for calling the TestInteractionPlot obj's underlying member method code with example usage: obj.test_plot_pandas(astype, close_figures) without return types