code: def test_formatting_errors(self, close_figures):
      assert_raises(
          ValueError,
          interaction_plot,
          self.weight,
          self.duration,
          self.days,
          markers=["D"],
      )
      assert_raises(
          ValueError,
          interaction_plot,
          self.weight,
          self.duration,
          self.days,
          colors=["b", "r", "g"],
      )
      assert_raises(
          ValueError,
          interaction_plot,
          self.weight,
          self.duration,
          self.days,
          linestyles=["--", "-.", ":"],
      )
  
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 6 for calling the TestInteractionPlot obj's underlying member method code with example usage: obj.test_formatting_errors(close_figures) without return types