code: def test_innovations_mle_invalid():
      endog = np.arange(2) * 1.0
      assert_raises(ValueError, innovations_mle, endog, order=(0, 0, 2))
      assert_raises(
          ValueError, innovations_mle, endog, order=(0, 0, -1)
      )
      assert_raises(
          ValueError, innovations_mle, endog, order=(0, 0, 1.5)
      )
  
      endog = lake.copy()
      assert_raises(
          ValueError,
          innovations_mle,
          endog,
          order=(1, 0, 0),
          start_params=[1.0, 1.0],
      )
      assert_raises(
          ValueError,
          innovations_mle,
          endog,
          order=(0, 0, 1),
          start_params=[1.0, 1.0],
      )
  
imports: import numpy
  import pytest
  from numpy.testing import assert_, assert_allclose, assert_warns, assert_raises
  from statsmodels.tsa.innovations.arma_innovations import arma_innovations
  from statsmodels.tsa.statespace import sarimax
  from statsmodels.tsa.arima.datasets.brockwell_davis_2002 import dowj, lake, oshorts
  from statsmodels.tsa.arima.estimators.burg import burg
  from statsmodels.tsa.arima.estimators.hannan_rissanen import hannan_rissanen
  from statsmodels.tsa.arima.estimators.innovations import innovations, innovations_mle
label_desc: Use image node_id 14 for calling a global function with example usage: test_innovations_mle_invalid() without return types