code: def test_raises(self):
      assert_raises(ValueError, seasonal_decompose, self.data.values)
      assert_raises(
          ValueError, seasonal_decompose, self.data, "m", period=4
      )
      x = self.data.astype(float).copy()
      x.iloc[2] = np.nan
      assert_raises(ValueError, seasonal_decompose, x)
  
imports: from statsmodels.compat.pandas import MONTH_END, QUARTER_END, YEAR_END
  import numpy
  from numpy.testing import assert_allclose, assert_almost_equal, assert_equal, assert_raises
  import pandas
  import pytest
  from statsmodels.tsa.seasonal import seasonal_decompose
label_desc: Use image node_id 9 for calling the TestDecompose obj's underlying member method code with example usage: obj.test_raises() without return types