code: def test_non_unique_names(self):
      # Will fail since the same name repeated twice
      with pytest.raises(ValueError) as ve:
          Pipeline(
              [
                  ("stage", BoxCoxEndogTransformer()),
                  ("stage", ARIMA(order=(0, 0, 0))),
              ]
          )
  
      assert "not unique" in pytest_error_str(ve)
  
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 the TestIllegal obj's underlying member method code with example usage: obj.test_non_unique_names() without return types