code: def _get_diffs(
      data: pd.Series, lags_list: List[Any]
  ) -> List[pd.Series]:
      """Returns the requested differences of the provided `data`
  
      Parameters
      ----------
      data : pd.Series
          Data whose differences have to be computed
      lags_list : List[Any]
          lags of the differences
  
      Returns
      -------
      List[pd.Series]
          List of differences per the lags_list
      """
      # Default na_handling changed in sktime 0.13.0 (compared to 0.11.x).
      # https://www.sktime.org/en/latest/changelog.html#id3. Hence hard coding.
      diffs = [
          Differencer(lags=lags, na_handling="drop_na").fit_transform(
              data
          )
          for lags in lags_list
      ]
      return diffs
  
imports: import math
  import re
  import warnings
  from enum import Enum, IntEnum
  from typing import Any, Dict, List, Optional, Tuple
  import numpy
  import pandas
  from pmdarima.arima.utils import ndiffs
  from sktime.param_est.seasonality import SeasonalityACF
  from sktime.transformations.series.difference import Differencer
  from sktime.utils.plotting import plot_series
label_desc: Use image node_id 2 for calling a global function with example usage: _get_diffs(data, lags_list) and returns: diffs