docstr: Using kwargs to pass additional parameters to the constructor
docstr_tok: ["Using","kwargs","to","pass","additional","parameters","to","the","constructor"]
code: def test_constructor_kwargs(self):
      """Using kwargs to pass additional parameters to the constructor"""
      constructor_kwargs = {
          "initialization_method": "known",
          "initial_level": 0.5,
          "initial_trend": 0.2,
          "initial_seasonal": np.arange(1, 25),
      }
      model = ExponentialSmoothing(kwargs=constructor_kwargs)
      model.fit(self.series)
      # must be checked separately, name is not consistent
      np.testing.assert_array_almost_equal(
          model.model.model.params["initial_seasons"],
          constructor_kwargs["initial_seasonal"],
      )
      for param_name in ["initial_level", "initial_trend"]:
          assert (
              model.model.model.params[param_name]
              == constructor_kwargs[param_name]
          )
  
file_path: darts/darts/tests/models/forecasting/test_exponential_smoothing.py
imports: import numpy
  import pytest
  from darts import TimeSeries
  from darts.models import ExponentialSmoothing
  from darts.utils import timeseries_generation
label_desc: Use image node_id 4 for calling the TestExponentialSmoothing obj's underlying member method code with example usage: obj.test_constructor_kwargs() without return types