code: def test_get_lagged_regressor_info():
      # Without lagged regressors
      template = SilverkiteTemplate()
      template.config = template.apply_forecast_config_defaults()
      expected_lagged_regressor_info = {
          "lagged_regressor_cols": None,
          "overall_min_lag_order": None,
          "overall_max_lag_order": None,
      }
      assert (
          template.get_lagged_regressor_info()
          == expected_lagged_regressor_info
      )
  
      # With lagged regressors
      template.config.model_components_param = ModelComponentsParam(
          lagged_regressors={
              "lagged_regressor_dict": [
                  {
                      "regressor2": {
                          "lag_dict": {"orders": [5]},
                          "agg_lag_dict": {
                              "orders_list": [[7, 7 * 2, 7 * 3]],
                              "interval_list": [(8, 7 * 2)],
                          },
                          "series_na_fill_func": lambda s: s.bfill().ffill(),
                      }
                  },
                  {
                      "regressor_bool": {
                          "lag_dict": {"orders": [1]},
                          "agg_lag_dict": {
                              "orders_list": [[7, 7 * 2]],
                              "interval_list": [(8, 7 * 2)],
                          },
                          "series_na_fill_func": lambda s: s.bfill().ffill(),
                      }
                  },
              ]
          }
      )
      lagged_regressor_info = template.get_lagged_regressor_info()
      assert set(lagged_regressor_info["lagged_regressor_cols"]) == {
          "regressor2",
          "regressor_bool",
      }
      assert lagged_regressor_info["overall_min_lag_order"] == 1
      assert lagged_regressor_info["overall_max_lag_order"] == 21
  
imports: import dataclasses
  import datetime
  import warnings
  import numpy
  import pandas
  import pytest
  from greykite.algo.forecast.silverkite.forecast_silverkite import SilverkiteForecast
  from greykite.algo.forecast.silverkite.forecast_simple_silverkite_helper import generate_holiday_events
  from greykite.algo.forecast.silverkite.forecast_simple_silverkite_helper import get_event_pred_cols
  from greykite.common.constants import ADJUSTMENT_DELTA_COL
  from greykite.common.constants import END_TIME_COL
  from greykite.common.constants import METRIC_COL
  from greykite.common.constants import PREDICTION_BAND_COVERAGE
  from greykite.common.constants import START_TIME_COL
  from greykite.common.constants import TIME_COL
  from greykite.common.constants import VALUE_COL
  from greykite.common.evaluation import EvaluationMetricEnum
  from greykite.common.python_utils import assert_equal
  from greykite.common.testing_utils import generate_df_for_tests
  from greykite.common.testing_utils import generate_df_with_reg_for_tests
  from greykite.framework.constants import COMPUTATION_N_JOBS
  from greykite.framework.constants import CV_REPORT_METRICS_ALL
  from greykite.framework.templates.autogen.forecast_config import ComputationParam
  from greykite.framework.templates.autogen.forecast_config import EvaluationMetricParam
  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.model_templates import ModelTemplateEnum
  from greykite.framework.templates.silverkite_template import SilverkiteTemplate
  from greykite.framework.templates.silverkite_template import apply_default_model_components
  from greykite.framework.templates.silverkite_template import get_extra_pred_cols
  from greykite.framework.utils.framework_testing_utils import assert_basic_pipeline_equal
  from greykite.framework.utils.framework_testing_utils import check_forecast_pipeline_result
  from greykite.sklearn.estimator.silverkite_estimator import SilverkiteEstimator
label_desc: Use image node_id 7 for calling a global function with example usage: test_get_lagged_regressor_info() without return types