code: def SMA(arr: pd.Series, n: int) -> pd.Series:
      """
      Returns `n`-period simple moving average of array `arr`.
      """
      return pd.Series(arr).rolling(n).mean()
  
label_desc: Use image node_id 2 for calling a global function with example usage: SMA(arr, n) and returns: pd