code: def test_get_features_dataframe(
      series: pd.Series,
      time_features: List[TimeFeature],
      lag_indices: List[int],
      past_data: Optional[pd.Series],
      expected_df: pd.DataFrame,
  ):
      got_df = get_features_dataframe(
          series,
          time_features=time_features,
          lag_indices=lag_indices,
          past_data=past_data,
      )
      pd.testing.assert_frame_equal(expected_df, got_df)
  
file_path: gluonts/test/nursery/autogluon_tabular/test_autogluon_tabular.py
imports: from typing import List, Optional
  import pytest
  import numpy
  import pandas
  import tempfile
  from pathlib import Path
  from gluonts.dataset.common import ListDataset
  from gluonts.dataset.util import to_pandas
  from gluonts.nursery.autogluon_tabular.predictor import get_features_dataframe
  from gluonts.nursery.autogluon_tabular import TabularEstimator
  from gluonts.model.predictor import Predictor
  from gluonts.time_feature import TimeFeature, hour_of_day, day_of_week, month_of_year
label_desc: Use image node_id 1 for calling a global function with example usage: test_get_features_dataframe(series, time_features, lag_indices, past_data, expected_df) without return types