code: def test_get_model_template_weekly(
      forecast_horizon, cv_max_splits, expected_template, weekly_data
  ):
      """Weekly model template."""
      df = weekly_data
      config = ForecastConfig(
          forecast_horizon=forecast_horizon,
          evaluation_period_param=EvaluationPeriodParam(
              cv_max_splits=cv_max_splits
          ),
      )
      with LogCapture(LOGGER_NAME) as log_capture:
          model_template = get_auto_silverkite_model_template(
              df=df,
              default_model_template_name=DEFAULT_MODEL_TEMPLATE,
              config=config,
          )
          assert model_template == expected_template
          log_capture.check_present(
              (
                  LOGGER_NAME,
                  "INFO",
                  f"Model template was set to 'auto'. "
                  f"Automatically found most appropriate model template '{model_template}'.",
              )
          )
  
imports: import pandas
  import pytest
  from testfixtures import LogCapture
  from greykite.common.logging import LOGGER_NAME
  from greykite.framework.templates.auto_model_template import get_auto_silverkite_model_template
  from greykite.framework.templates.autogen.forecast_config import EvaluationPeriodParam
  from greykite.framework.templates.autogen.forecast_config import ForecastConfig
  from greykite.framework.templates.model_templates import ModelTemplateEnum
  from greykite.framework.templates.simple_silverkite_template_config import SILVERKITE_DAILY_90
  from greykite.framework.templates.simple_silverkite_template_config import SILVERKITE_HOURLY_1
  from greykite.framework.templates.simple_silverkite_template_config import SILVERKITE_HOURLY_24
  from greykite.framework.templates.simple_silverkite_template_config import SILVERKITE_HOURLY_168
  from greykite.framework.templates.simple_silverkite_template_config import SILVERKITE_HOURLY_336
  from greykite.framework.templates.simple_silverkite_template_config import SILVERKITE_WEEKLY
label_desc: Use image node_id 8 for calling a global function with example usage: test_get_model_template_weekly(forecast_horizon, cv_max_splits, expected_template, weekly_data) without return types