code: def test_issue_341():
      y = [
          0,
          132,
          163,
          238,
          29,
          0,
          150,
          320,
          249,
          224,
          197,
          31,
          0,
          154,
          143,
          132,
          135,
          158,
          21,
          0,
          126,
          100,
          137,
          105,
          104,
          8,
          0,
          165,
          191,
          234,
          253,
          155,
          25,
          0,
          228,
          234,
          265,
          205,
          191,
          19,
          0,
          188,
          156,
          172,
          173,
          166,
          28,
          0,
          209,
          160,
          159,
          129,
          124,
          18,
          0,
          155,
      ]
  
      with pytest.raises(ValueError) as ve:
          auto.auto_arima(
              y,
              start_p=1,
              start_q=1,
              test="adf",
              max_p=3,
              max_q=3,
              m=52,
              start_P=0,
              seasonal=True,
              d=None,
              D=1,
              trace=True,
              error_action="ignore",
              suppress_warnings=True,
              stepwise=True,
          )
  
      # assert that we catch the np LinAlg error and reraise with a more
      # meaningful message
      assert (
          "Encountered exception in stationarity test"
          in pytest_error_str(ve)
      )
  
imports: import numpy
  import pandas
  import pmdarima
  from pmdarima.arima import auto
  from pmdarima.arima.utils import nsdiffs
  from pmdarima.warnings import ModelFitWarning
  from pmdarima.compat.pytest import pytest_error_str, pytest_warning_messages
  from numpy.testing import assert_allclose
  from numpy.testing import assert_array_almost_equal
  import os
  from os.path import abspath, dirname
  import pytest
label_desc: Use image node_id 7 for calling a global function with example usage: test_issue_341() without return types