class_docstr: The model template for Multistage Forecast Estimator.
class_docstr_tok: ["The","model","template","for","Multistage","Forecast","Estimator","."]
docstr: Gets the default model components from a model template name.
  
  Parameters
  ----------
  template : `str`
      The model template name.
  
  Returns
  -------
  template : `~greykite.framework.templates.base_template.BaseTemplate`
      The model template class.
docstr_tok: ["Gets","the","default","model","components","from","a","model","template","name",".","Parameters","--","--","--","--","--","template",":","`","str","`","The","model","template","name",".","Returns","--","--","--","-","template",":","`","~greykite.framework.templates.base_template.BaseTemplate","`","The","model","template","class","."]
code: def __get_default_model_components(self, template: str):
      """Gets the default model components from a model template name.
  
      Parameters
      ----------
      template : `str`
          The model template name.
  
      Returns
      -------
      template : `~greykite.framework.templates.base_template.BaseTemplate`
          The model template class.
      """
      try:
          template = getattr(self._constants, template)
      except (AttributeError, TypeError):
          raise ValueError(
              f"The template name {template} is not recognized!"
          )
      return template
  
imports: from itertools import product
  from typing import Dict
  from typing import List
  from typing import Type
  import pandas
  from greykite.common import constants
  from greykite.common.logging import LoggingLevelEnum
  from greykite.common.logging import log_message
  from greykite.common.python_utils import unique_in_list
  from greykite.common.python_utils import update_dictionaries
  from greykite.framework.templates.autogen.forecast_config import ForecastConfig
  from greykite.framework.templates.autogen.forecast_config import MetadataParam
  from greykite.framework.templates.base_template import BaseTemplate
  from greykite.framework.templates.multistage_forecast_template_config import MultistageForecastTemplateConfig
  from greykite.framework.templates.multistage_forecast_template_config import MultistageForecastTemplateConstants
  from greykite.sklearn.estimator.base_forecast_estimator import BaseForecastEstimator
  from greykite.sklearn.estimator.multistage_forecast_estimator import MultistageForecastEstimator
  from greykite.sklearn.estimator.multistage_forecast_estimator import MultistageForecastModelConfig
label_desc: Use image node_id 10 for calling the MultistageForecastTemplate obj's underlying member method code with example usage: obj.__get_default_model_components(template) and returns: template