class_docstr: TSPipeline is an E2E solution for time series analysis (only forecasting task for now).
  You can use TSPipeline to:
  
  1. Further development on the prototype. (predict, evaluate, incremental fit)
  
  2. Deploy the model to their scenario. (save, load)
docstr: Save the TSPipeline to a folder
  
  :param file_path: the folder location to save the pipeline
docstr_tok: ["Save","the","TSPipeline","to","a","folder",":","param","file_path",":","the","folder","location","to","save","the","pipeline"]
code: def save(self, file_path):
      """
      Save the TSPipeline to a folder
  
      :param file_path: the folder location to save the pipeline
      """
      from bigdl.chronos.utils import SafePickle
  
      if not os.path.isdir(file_path):
          os.mkdir(file_path)
      model_init_path = os.path.join(file_path, DEFAULT_MODEL_INIT_DIR)
      model_path = os.path.join(file_path, DEFAULT_BEST_MODEL_DIR)
      data_process_path = os.path.join(
          file_path, DEFAULT_DATA_PROCESS_DIR
      )
      best_config_path = os.path.join(
          file_path, DEFAULT_BEST_CONFIG_DIR
      )
      model_init = {
          "model_creator": self.model_creator,
          "optimizer_creator": self.optimizer_creator,
          "loss_creator": self.loss_creator,
      }
      data_process = {
          "scaler": self._scaler,
          "scaler_index": self._scaler_index,
      }
      with open(model_init_path, "wb") as f:
          SafePickle.dump(model_init, f)
      with open(data_process_path, "wb") as f:
          SafePickle.dump(data_process, f)
      with open(best_config_path, "wb") as f:
          SafePickle.dump(self._best_config, f)
      # self._best_model.save(model_path)
      torch.save(self._best_model.model.state_dict(), model_path)
  
imports: import os
  from bigdl.chronos.utils import LazyImport
  import types
  import numpy
  from bigdl.chronos.data import TSDataset
  from bigdl.chronos.metric.forecast_metrics import Evaluator
  from bigdl.chronos.pytorch.utils import _pytorch_fashion_inference
  from bigdl.nano.utils.common import invalidInputError
label_desc: Use image node_id 7 for calling the TSPipeline obj's underlying member method code with example usage: obj.save(file_path) without return types