code: def test_invalid():
      endog = dta["infl"].copy()
      mod = sarimax.SARIMAX(endog.iloc[:-1])
      res = mod.smooth([0.5, 1.0])
  
      msg = "The index associated with the updated results is not a superset"
      with pytest.raises(ValueError, match=msg):
          res.news(endog.values)
  
imports: from statsmodels.compat.pandas import FUTURE_STACK, assert_frame_equal, assert_series_equal
  import numpy
  from numpy.testing import assert_, assert_allclose, assert_equal
  import pandas
  import pytest
  from statsmodels import datasets
  from statsmodels.tsa.statespace import dynamic_factor, sarimax, structural, varmax
label_desc: Use image node_id 16 for calling a global function with example usage: test_invalid() without return types