code: def test_invalid():
      endog = np.arange(2) * 1.0
      assert_raises(ValueError, durbin_levinson, endog, ar_order=2)
      assert_raises(ValueError, durbin_levinson, endog, ar_order=-1)
      assert_raises(ValueError, durbin_levinson, endog, ar_order=1.5)
  
      endog = np.arange(10) * 1.0
      assert_raises(ValueError, durbin_levinson, endog, ar_order=[1, 3])
  
file_path: statsmodels/statsmodels/tsa/arima/estimators/tests/test_durbin_levinson.py
imports: import numpy
  import pytest
  from numpy.testing import assert_allclose, assert_raises
  from statsmodels.tsa.innovations.arma_innovations import arma_innovations
  from statsmodels.tsa.arima.datasets.brockwell_davis_2002 import dowj, lake
  from statsmodels.tsa.arima.estimators.durbin_levinson import durbin_levinson
label_desc: Use image node_id 6 for calling a global function with example usage: test_invalid() without return types