code: def forecast_config(multistage_forecast_configs):
      forecast_config = ForecastConfig(
          model_template="SILVERKITE_TWO_STAGE",
          forecast_horizon=12,
          metadata_param=MetadataParam(
              time_col=TIME_COL, value_col=VALUE_COL, freq="H"
          ),
          model_components_param=ModelComponentsParam(
              custom=dict(
                  multistage_forecast_configs=multistage_forecast_configs
              )
          ),
          evaluation_period_param=EvaluationPeriodParam(
              cv_max_splits=1, cv_horizon=12, test_horizon=12
          ),
      )
      return forecast_config
  
imports: import datetime
  import numpy
  import pytest
  from testfixtures import LogCapture
  from greykite.common.constants import LOGGER_NAME
  from greykite.common.constants import PREDICTED_COL
  from greykite.common.constants import PREDICTED_LOWER_COL
  from greykite.common.constants import PREDICTED_UPPER_COL
  from greykite.common.constants import TIME_COL
  from greykite.common.constants import VALUE_COL
  from greykite.common.testing_utils import generate_df_for_tests
  from greykite.framework.templates.autogen.forecast_config import EvaluationPeriodParam
  from greykite.framework.templates.autogen.forecast_config import ForecastConfig
  from greykite.framework.templates.autogen.forecast_config import MetadataParam
  from greykite.framework.templates.autogen.forecast_config import ModelComponentsParam
  from greykite.framework.templates.forecaster import Forecaster
  from greykite.framework.templates.multistage_forecast_template import MultistageForecastTemplate
  from greykite.framework.templates.multistage_forecast_template_config import SILVERKITE_TWO_STAGE
  from greykite.framework.templates.multistage_forecast_template_config import MultistageForecastTemplateConfig
  from greykite.framework.templates.simple_silverkite_template import SimpleSilverkiteTemplate
  from greykite.sklearn.estimator.simple_silverkite_estimator import SimpleSilverkiteEstimator
  from greykite.sklearn.uncertainty.uncertainty_methods import UncertaintyMethodEnum
label_desc: Use image node_id 4 for calling a global function with example usage: forecast_config(multistage_forecast_configs) and returns: forecast_config