def test_multioutput_wrapper(self, config):
        """Check that with input_chunk_length=1, wrapping in MultiOutputRegressor occurs only when necessary"""
        model, supports_multioutput_natively = config
        model.fit(series=self.sine_multivariate1)
        if supports_multioutput_natively:
            assert not isinstance(model.model, MultiOutputRegressor)
            # single estimator is responsible for both components
            assert (
                model.model
                == model.get_estimator(horizon=0, target_dim=0)
                == model.get_estimator(horizon=0, target_dim=1)
            )
        else:
            assert isinstance(model.model, MultiOutputRegressor)
            # one estimator (sub-model) per component
            assert model.get_estimator(horizon=0, target_dim=0) != model.get_estimator(
                horizon=0, target_dim=1
            )
Check that with input_chunk_length=1, wrapping in MultiOutputRegressor occurs only when necessary
darts/tests/models/forecasting/test_sklearn_models.py