code: def test_order_rolling(self):
      first_class = pd.DataFrame(
          {"x": [1, 2, 3, 4], "time": [1, 15, 132, 145]}
      )
      second_class = pd.DataFrame(
          {"x": [5, 6, 7], "time": [16, 133, 146]}
      )
  
      first_class["initial_id"] = 1
      second_class["initial_id"] = 2
      df_full = pd.concat(
          [first_class, second_class], ignore_index=True
      )
  
      # Do not show the warning on non-equidistant time
      with warning_free():
          window_size = 2
  
          df_rolled = dataframe_functions.roll_time_series(
              df_full,
              column_id="initial_id",
              column_sort="time",
              min_timeshift=window_size - 1,
              max_timeshift=window_size - 1,
          )
  
      """ df is
          {x: _value  id
                1.0   1
                2.0   1
                3.0   1
                4.0   1
                5.0   2
                6.0   2
                7.0   2,
           }
          """
  
      correct_indices = [
          (1, 15),
          (1, 15),
          (1, 132),
          (1, 132),
          (1, 145),
          (1, 145),
          (2, 133),
          (2, 133),
          (2, 146),
          (2, 146),
      ]
  
      self.assertListEqual(list(df_rolled["id"]), correct_indices)
  
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 9 for calling the RollingTestCase obj's underlying member method code with example usage: obj.test_order_rolling() without return types