code: def test_failing_ocsb():
      # TODO: should this pass?
      # This passes in R, but statsmodels can't compute the regression...
      with pytest.raises(ValueError):
          OCSBTest(m=4, max_lag=0).estimate_seasonal_differencing_term(
              austres
          )
  
      # Fail for bad method
      with pytest.raises(ValueError) as v:
          OCSBTest(
              m=4, max_lag=3, lag_method="bad_method"
          ).estimate_seasonal_differencing_term(austres)
      assert "invalid method" in pytest_error_str(v)
  
imports: from pmdarima.arima.seasonality import CHTest, decompose, OCSBTest
  from pmdarima.arima.utils import nsdiffs
  from pmdarima.compat.pytest import pytest_error_str
  from pmdarima.datasets import load_airpassengers, load_ausbeer, load_austres, load_wineind
  import numpy
  from numpy.testing import assert_almost_equal, assert_array_equal
  from sklearn.utils.validation import check_random_state
  import pytest
  from unittest import mock
label_desc: Use image node_id 13 for calling a global function with example usage: test_failing_ocsb() without return types