class_docstr: A derived class of `~greykite.algo.forecast.silverkite.SilverkiteForecast`.
  Provides an alternative interface with simplified configuration parameters.
  Produces the same trained model output and uses the same predict functions.
class_docstr_tok: ["A","derived","class","of","`","~greykite.algo.forecast.silverkite.SilverkiteForecast","`",".","Provides","an","alternative","interface","with","simplified","configuration","parameters",".","Produces","the","same","trained","model","output","and","uses","the","same","predict","functions","."]
docstr: Returns requested seasonality fourier series order.
  
  Parameters
  ----------
  requested_seasonality :  `str` or `bool` or `int` or None, default = "auto"
      The requested seasonality.
      "auto", `True`, `False`, None (same as `False`) or a number for the Fourier order.
  default_order : `int`
      The default order to use for "auto" and True.
  is_enabled_auto : `bool`
      Whether the seasonality should be modeled for "auto" seasonality.
  
  Returns
  -------
  order : `int`
      Seasonality fourier series order.
code: def __get_requested_seasonality_order(
      self,
      requested_seasonality="auto",
      default_order=5,
      is_enabled_auto=True,
  ):
      """Returns requested seasonality fourier series order.
  
      Parameters
      ----------
      requested_seasonality :  `str` or `bool` or `int` or None, default = "auto"
          The requested seasonality.
          "auto", `True`, `False`, None (same as `False`) or a number for the Fourier order.
      default_order : `int`
          The default order to use for "auto" and True.
      is_enabled_auto : `bool`
          Whether the seasonality should be modeled for "auto" seasonality.
  
      Returns
      -------
      order : `int`
          Seasonality fourier series order.
      """
      if requested_seasonality is True or (
          requested_seasonality == "auto" and is_enabled_auto
      ):
          order = default_order
      elif requested_seasonality is False or (
          requested_seasonality == "auto" and not is_enabled_auto
      ):
          order = 0
      elif requested_seasonality is None:
          order = 0
      else:
          try:
              order = int(requested_seasonality)
          except ValueError as e:
              log_message(
                  f"Requested seasonality order '{requested_seasonality}' must be one of:"
                  f" 'auto', True, False, None, or int.",
                  LoggingLevelEnum.ERROR,
              )
              raise e
      return order
  
imports: from datetime import datetime
  from typing import Dict
  from typing import List
  from typing import Optional
  from typing import Type
  from typing import Union
  import pandas
  from greykite.algo.changepoint.adalasso.changepoint_detector import get_changepoints_dict
  from greykite.algo.forecast.silverkite.auto_config import get_auto_growth
  from greykite.algo.forecast.silverkite.auto_config import get_auto_holidays
  from greykite.algo.forecast.silverkite.auto_config import get_auto_seasonality
  from greykite.algo.forecast.silverkite.constants.silverkite_column import SilverkiteColumn
  from greykite.algo.forecast.silverkite.constants.silverkite_constant import SilverkiteConstant
  from greykite.algo.forecast.silverkite.constants.silverkite_constant import default_silverkite_constant
  from greykite.algo.forecast.silverkite.constants.silverkite_holiday import SilverkiteHoliday
  from greykite.algo.forecast.silverkite.constants.silverkite_time_frequency import SilverkiteTimeFrequencyEnum
  from greykite.algo.forecast.silverkite.forecast_silverkite import SilverkiteForecast
  from greykite.algo.forecast.silverkite.forecast_simple_silverkite_helper import cols_interact
  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.algo.forecast.silverkite.forecast_simple_silverkite_helper import patsy_categorical_term
  from greykite.common import constants
  from greykite.common.constants import GrowthColEnum
  from greykite.common.enums import SimpleTimeFrequencyEnum
  from greykite.common.enums import TimeEnum
  from greykite.common.features.timeseries_features import get_available_holidays_across_countries
  from greykite.common.features.timeseries_features import get_changepoint_features_and_values_from_config
  from greykite.common.logging import LoggingLevelEnum
  from greykite.common.logging import log_message
  from greykite.common.python_utils import unique_elements_in_list
  from greykite.common.python_utils import update_dictionary
  from greykite.common.time_properties_forecast import get_forecast_time_properties
label_desc: Use image node_id 4 for calling the SimpleSilverkiteForecast obj's underlying member method code with example usage: obj.__get_requested_seasonality_order(requested_seasonality, default_order, is_enabled_auto) and returns: order