code: def test_stacked_rolling(self):
      first_class = pd.DataFrame(
          {"a": [1, 2, 3, 4], "b": [5, 6, 7, 8], "time": range(4)}
      )
      second_class = pd.DataFrame(
          {"a": [10, 11], "b": [12, 13], "time": range(20, 22)}
      )
  
      first_class["id"] = 1
      second_class["id"] = 2
  
      df_full = pd.concat(
          [first_class, second_class], ignore_index=True
      )
  
      df_stacked = pd.concat(
          [
              df_full[["time", "id", "a"]].rename(
                  columns={"a": "_value"}
              ),
              df_full[["time", "id", "b"]].rename(
                  columns={"b": "_value"}
              ),
          ],
          ignore_index=True,
      )
      df_stacked["kind"] = ["a"] * 6 + ["b"] * 6
  
      """ df_stacked is
              time  id  _value kind
          0      0   1       1    a
          1      1   1       2    a
          2      2   1       3    a
          3      3   1       4    a
          4     20   2      10    a
          5     21   2      11    a
          6      0   1       5    b
          7      1   1       6    b
          8      2   1       7    b
          9      3   1       8    b
          10    20   2      12    b
          11    21   2      13    b
          """
  
      df = dataframe_functions.roll_time_series(
          df_stacked,
          column_id="id",
          column_sort="time",
          column_kind="kind",
          rolling_direction=-1,
          n_jobs=0,
      )
  
      correct_indices = (
          [(1, 0)] * 2 * 4
          + [(1, 1)] * 2 * 3
          + [(1, 2)] * 2 * 2
          + [(1, 3)] * 2 * 1
          + [(2, 20)] * 2 * 2
          + [(2, 21)] * 2 * 1
      )
      self.assertListEqual(list(df["id"].values), correct_indices)
  
      self.assertListEqual(list(df["kind"].values), ["a", "b"] * 13)
      self.assertListEqual(
          list(df["_value"].values),
          [
              1.0,
              5.0,
              2.0,
              6.0,
              3.0,
              7.0,
              4.0,
              8.0,
              2.0,
              6.0,
              3.0,
              7.0,
              4.0,
              8.0,
              3.0,
              7.0,
              4.0,
              8.0,
              4.0,
              8.0,
              10.0,
              12.0,
              11.0,
              13.0,
              11.0,
              13.0,
          ],
      )
  
imports: import warnings
  from unittest import TestCase
  import numpy
  import pandas
  from pandas.testing import assert_frame_equal, assert_series_equal
  from tests.fixtures import warning_free
  from tsfresh import extract_relevant_features
  from tsfresh.feature_extraction.settings import MinimalFCParameters
  from tsfresh.utilities import dataframe_functions
label_desc: Use image node_id 6 for calling the RollingTestCase obj's underlying member method code with example usage: obj.test_stacked_rolling() without return types