code: def test_invalid_kwargs():
      endog = [0, 0, 1.0]
      # Make sure we can create basic SARIMAX
      sarimax.SARIMAX(endog)
      # Now check that it raises a warning if we add an invalid keyword argument
      with pytest.warns(FutureWarning):
          sarimax.SARIMAX(endog, invalid_kwarg=True)
  
imports: from statsmodels.compat.pandas import MONTH_END
  import os
  import re
  import warnings
  import numpy
  from numpy.testing import assert_, assert_allclose, assert_almost_equal, assert_equal, assert_raises
  import pandas
  import pytest
  from statsmodels.datasets import nile
  from statsmodels.tsa.statespace import kalman_filter, kalman_smoother, sarimax, varmax
  from statsmodels.tsa.statespace.mlemodel import MLEModel, MLEResultsWrapper
  from statsmodels.tsa.statespace.tests.results import results_sarimax, results_var_misc
label_desc: Use image node_id 35 for calling a global function with example usage: test_invalid_kwargs() without return types