code: def switch_ces(x: str):
      return {"N": 0, "S": 1, "P": 2, "F": 3}[x]
  
imports: import math
  from typing import Tuple
  import numpy
  from numba import njit
  from statsmodels.tsa.seasonal import seasonal_decompose
  from .ets import restrict_to_bounds, results
  from .utils import CACHE, NOGIL
label_desc: Use image node_id 7 for calling a global function with example usage: switch_ces(x) and returns: dict