code: def unintegrate_levels(x, d):
      """
      Returns the successive differences needed to unintegrate the series.
  
      Parameters
      ----------
      x : array_like
          The original series
      d : int
          The number of differences of the differenced series.
  
      Returns
      -------
      y : array_like
          The increasing differences from 0 to d-1 of the first d elements
          of x.
  
      See Also
      --------
      unintegrate
      """
      d = int_like(d, "d")
      x = x[:d]
      return np.asarray([np.diff(x, d - i)[0] for i in range(d, 0, -1)])
  
imports: from __future__ import annotations
  from statsmodels.compat.python import Literal, lrange
  import warnings
  import numpy
  import pandas
  from pandas import DataFrame
  from pandas.tseries import offsets
  from pandas.tseries.frequencies import to_offset
  from statsmodels.tools.data import _is_recarray, _is_using_pandas
  from statsmodels.tools.sm_exceptions import ValueWarning
  from statsmodels.tools.typing import NDArray
  from statsmodels.tools.validation import array_like, bool_like, int_like, string_like
label_desc: Use image node_id 20 for calling a global function with example usage: unintegrate_levels(x, d) and returns: np