code: def test_validate_basic():
      # Valid parameters
      assert_equal(validate_basic([], 0, title="test"), [])
      assert_equal(validate_basic(0, 1), [0])
      assert_equal(validate_basic([0], 1), [0])
      assert_equal(
          validate_basic(np.array([1.2, 0.5 + 1j]), 2),
          np.array([1.2, 0.5 + 1j]),
      )
      assert_equal(
          validate_basic(
              [np.nan, -np.inf, np.inf], 3, allow_infnan=True
          ),
          [np.nan, -np.inf, np.inf],
      )
  
      # Invalid parameters
      assert_raises(ValueError, validate_basic, [], 1, title="test")
      assert_raises(ValueError, validate_basic, 0, 0)
      assert_raises(ValueError, validate_basic, "a", 1)
      assert_raises(ValueError, validate_basic, None, 1)
      assert_raises(ValueError, validate_basic, np.nan, 1)
      assert_raises(ValueError, validate_basic, np.inf, 1)
      assert_raises(ValueError, validate_basic, -np.inf, 1)
      assert_raises(ValueError, validate_basic, [1, 2], 1)
  
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 10 for calling a global function with example usage: test_validate_basic() without return types