code: def test_get_kwargs(pipe, kwargs, expected):
      # Test we get the kwargs we expect
      kw = pipe._get_kwargs(**kwargs)
      assert kw == expected
  
      # show we can convert steps to dict
      assert pipe.named_steps
  
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 1 for calling a global function with example usage: test_get_kwargs(pipe, kwargs, expected) without return types