code: def test_fit(self):
      tsdata = get_tsdata()
      data = tsdata.to_numpy()
      dataloader = DataLoader(
          TensorDataset(
              torch.from_numpy(data[0]),
              torch.from_numpy(data[1]),
              torch.from_numpy(data[2]),
              torch.from_numpy(data[3]),
          ),
          batch_size=32,
      )
      config_dict = {
          "seq_len": 48,
          "label_len": 12,
          "pred_len": 12,
          "enc_in": 1,
          "dec_in": 1,
          "c_out": 1,
          "freq": "d",
      }
      model = model_creator(config_dict)
      trainer = TSTrainer(max_epochs=2)
      trainer.fit(model, dataloader)
  
file_path: BigDL/python/chronos/test/bigdl/chronos/model/test_autoformer.py
imports: from unittest import TestCase
  from bigdl.chronos.utils import LazyImport
  from bigdl.chronos.data import TSDataset
  import pandas
  import numpy
  from sklearn.preprocessing import StandardScaler
  import tempfile
  import os
  from ..None import op_torch
label_desc: Use image node_id 1 for calling the TestAutoformerPytorch obj's underlying member method code with example usage: obj.test_fit() without return types