code: def test_autoformer_forecaster_from_tsdataset(self):
      df = get_ts_df()
      target = ["value", "extra feature"]
      tsdata_train, tsdata_val, tsdata_test = TSDataset.from_pandas(
          df,
          dt_col="datetime",
          target_col=target,
          with_split=True,
          test_ratio=0.1,
          val_ratio=0.1,
      )
      train_loader = tsdata_train.to_torch_data_loader(
          lookback=24, horizon=5, time_enc=True
      )
      forecaster = AutoformerForecaster.from_tsdataset(tsdata_train)
      forecaster.fit(train_loader, epochs=1, batch_size=32)
  
      # conflict param
      with pytest.raises(RuntimeError):
          forecaster = AutoformerForecaster.from_tsdataset(
              tsdata_train, label_len=30
          )
  
      # no data infer
      tsdata_train, tsdata_val, tsdata_test = TSDataset.from_pandas(
          df,
          dt_col="datetime",
          target_col=target,
          with_split=True,
          test_ratio=0.1,
          val_ratio=0.1,
      )
      forecaster = AutoformerForecaster.from_tsdataset(
          tsdata_train, past_seq_len=24, future_seq_len=5
      )
      forecaster.fit(train_loader, epochs=1, batch_size=32)
  
imports: import numpy
  import pandas
  import tempfile
  import os
  from bigdl.chronos.utils import LazyImport
  from bigdl.chronos.data import TSDataset
  from unittest import TestCase
  import pytest
  from ..None import op_torch, op_automl
label_desc: Use image node_id 17 for calling the TestChronosModelAutoformerForecaster obj's underlying member method code with example usage: obj.test_autoformer_forecaster_from_tsdataset() without return types