code: def test_xshardstsdataset_datetime_feature(self):
      from tempfile import TemporaryDirectory
  
      tmp_df = get_ts_df()
      with TemporaryDirectory() as tmpdir:
          file_name = os.path.join(tmpdir, "dt_feature.csv")
          tmp_df.to_csv(file_name, index=False)
          shards_tmp = read_csv(file_name)
          # interval = day
          tsdata = XShardsTSDataset.from_xshards(
              shards_tmp,
              dt_col="datetime",
              target_col="value",
              extra_feature_col=["extra feature"],
              id_col="id",
          )
          features = [
              "MINUTE",
              "HOUR",
              "IS_BUSY_HOURS",
              "DAY",
              "IS_WEEKEND",
              "WEEKDAY",
              "MONTH",
              "YEAR",
              "DAYOFYEAR",
              "WEEKOFYEAR",
              "IS_AWAKE",
          ]
          tsdata.gen_dt_feature(features)
          collected_df = tsdata.shards.collect()
          collected_df = pd.concat(collected_df, axis=0)
          assert set(collected_df.columns) == {
              "MINUTE",
              "HOUR",
              "IS_BUSY_HOURS",
              "DAY",
              "IS_WEEKEND",
              "WEEKDAY",
              "MONTH",
              "YEAR",
              "DAYOFYEAR",
              "WEEKOFYEAR",
              "IS_AWAKE",
              "extra feature",
              "value",
              "datetime",
              "id",
          }
          assert set(tsdata.feature_col) == {
              "MINUTE",
              "HOUR",
              "IS_BUSY_HOURS",
              "DAY",
              "IS_WEEKEND",
              "WEEKDAY",
              "MONTH",
              "YEAR",
              "DAYOFYEAR",
              "WEEKOFYEAR",
              "IS_AWAKE",
              "extra feature",
          }
  
imports: import pytest
  import numpy
  import pandas
  import random
  import os
  from unittest import TestCase
  from bigdl.chronos.data import TSDataset
  from bigdl.chronos.utils import LazyImport
  from ...None import op_torch, op_distributed
  from pandas.testing import assert_frame_equal
  from numpy.testing import assert_array_almost_equal
label_desc: Use image node_id 8 for calling the TestXShardsTSDataset obj's underlying member method code with example usage: obj.test_xshardstsdataset_datetime_feature() without return types