code: def test_standardize_lag_order_invalid():
      # Invalid input
      assert_raises(TypeError, standardize_lag_order, None)
      assert_raises(ValueError, standardize_lag_order, 1.2)
      assert_raises(ValueError, standardize_lag_order, -1)
      assert_raises(
          ValueError, standardize_lag_order, np.arange(4).reshape(2, 2)
      )
      # Boolean list can't have 2, lag order list can't have 0
      assert_raises(ValueError, standardize_lag_order, [0, 2])
      # Can't have duplicates
      assert_raises(ValueError, standardize_lag_order, [1, 1, 2])
  
file_path: statsmodels/statsmodels/tsa/arima/tests/test_tools.py
imports: import numpy
  from numpy.testing import assert_equal, assert_raises
  from statsmodels.tsa.arima.tools import standardize_lag_order, validate_basic
label_desc: Use image node_id 9 for calling a global function with example usage: test_standardize_lag_order_invalid() without return types