code: def test_manual_selection_hour_of_week(df_panel):
      """Tests that "hour_of_week" returns correct result in `manual_selection`."""
      y = pd.DataFrame(
          data={"y": range(6)},
          index=pd.date_range(start="2023-01-01", freq="H", periods=6),
      )
      transformer = DateTimeFeatures(
          manual_selection=["hour_of_week"], keep_original_columns=True
      )
  
      yt = transformer.fit_transform(y)
      expected = pd.DataFrame(
          data={
              "y": range(6),
              "hour_of_week": [144, 145, 146, 147, 148, 149],
          },
          index=y.index,
      )
      assert_frame_equal(yt, expected)
  
imports: import numpy
  import pandas
  import pytest
  from pandas.testing import assert_frame_equal
  from sktime.datasets import load_airline, load_longley, load_PBS_dataset
  from sktime.split import temporal_train_test_split
  from sktime.tests.test_switch import run_test_for_class
  from sktime.transformations.series.date import DateTimeFeatures
  from sktime.utils._testing.hierarchical import _make_hierarchical
label_desc: Use image node_id 28 for calling a global function with example usage: test_manual_selection_hour_of_week(df_panel) without return types