code: def test_warn_for_large_differences():
      # First: d is too large
      with pytest.warns(ModelFitWarning) as w:
          pm.auto_arima(
              wineind,
              seasonal=True,
              m=1,
              suppress_warnings=False,
              d=3,
              maxiter=5,
          )
      assert any(
          "Having 3 or more differencing operations" in s
          for s in pytest_warning_messages(w)
      )
  
      # Second: D is too large. M needs to be > 1 or D will be set to 0...
      # unfortunately, this takes a long time.
      with pytest.warns(ModelFitWarning) as w:
          pm.auto_arima(
              wineind,
              seasonal=True,
              m=2,  # noqa: F841
              suppress_warnings=False,
              D=3,
              maxiter=5,
          )
      assert any(
          "Having more than one seasonal differences" in s
          for s in pytest_warning_messages(w)
      )
  
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 19 for calling a global function with example usage: test_warn_for_large_differences() without return types