code: def _get_seasonal_diffs(
      *, y_past: pd.Series, seasonal_period: int = 1
  ) -> pd.Series:
      return (
          y_past.groupby(level=ITEMID, sort=False)
          .diff(seasonal_period)
          .abs()
      )
  
imports: import pandas
  from autogluon.timeseries.dataset.ts_dataframe import ITEMID
label_desc: Use image node_id 1 for calling a global function with example usage: _get_seasonal_diffs() and returns: y_past