code: def test_add_seasonality_calls(self):
      # test if adding seasonality at model creation and with method model.add_seasonality() are equal
      kwargs_mandatory = {
          "name": "custom",
          "seasonal_periods": 48,
          "fourier_order": 4,
      }
      kwargs_mandatory2 = {
          "name": "custom2",
          "seasonal_periods": 24.9,
          "fourier_order": 1,
      }
      kwargs_all = dict(
          kwargs_mandatory,
          **{
              "prior_scale": 1.0,
              "mode": "additive",
              "condition_name": "custom_condition",
          },
      )
      model1 = Prophet(add_seasonalities=kwargs_all)
      model2 = Prophet()
      model2.add_seasonality(**kwargs_all)
      assert model1._add_seasonalities == model2._add_seasonalities
  
      # add multiple seasonalities
      model3 = Prophet(
          add_seasonalities=[kwargs_mandatory, kwargs_mandatory2]
      )
      assert len(model3._add_seasonalities) == 2
  
      # seasonality already exists
      with pytest.raises(ValueError):
          model1.add_seasonality(**kwargs_mandatory)
  
      # missing mandatory arguments
      with pytest.raises(ValueError):
          for kw, arg in kwargs_mandatory.items():
              Prophet(add_seasonalities={kw: arg})
  
      # invalid keywords
      with pytest.raises(ValueError):
          Prophet(
              add_seasonalities=dict(
                  kwargs_mandatory, **{"some_random_keyword": "custom"}
              )
          )
  
      # invalid value dtypes
      with pytest.raises(ValueError):
          Prophet(
              add_seasonalities=dict(
                  {kw: None for kw in kwargs_mandatory}
              )
          )
  
      with pytest.raises(ValueError):
          Prophet(add_seasonalities=dict([]))
  
file_path: darts/darts/tests/models/forecasting/test_prophet.py
imports: from unittest.mock import Mock
  import numpy
  import pandas
  import pytest
  from darts import TimeSeries
  from darts.logging import get_logger
  from darts.models import NotImportedModule, Prophet
  from darts.utils import timeseries_generation
label_desc: Use image node_id 1 for calling the TestProphet obj's underlying member method code with example usage: obj.test_add_seasonality_calls() without return types