code: def test_deprecation_warning():
      kwargs = {"typ": "foo"}
      with pytest.warns(DeprecationWarning) as we:
          kwargs = _warn_for_deprecated(**kwargs)
      assert not kwargs
      assert we
  
imports: from pmdarima.compat.pytest import pytest_error_str
  from pmdarima.model_selection import train_test_split
  from pmdarima.pipeline import Pipeline, _warn_for_deprecated
  from pmdarima.preprocessing import BoxCoxEndogTransformer, FourierFeaturizer, DateFeaturizer, LogEndogTransformer
  from pmdarima.arima import ARIMA, AutoARIMA
  from pmdarima.datasets import load_wineind
  from pmdarima.datasets._base import load_date_example
  import numpy
  from numpy.testing import assert_array_almost_equal
  import pytest
label_desc: Use image node_id 4 for calling a global function with example usage: test_deprecation_warning() without return types