code: def setUp(self):
      self.n_train = 1000
      self.n_test = 500
      self.contamination = 0.1
      self.roc_floor = 0.6
      self.random_state = 42
      (
          self.X_train,
          self.X_test,
          self.y_train,
          self.y_test,
      ) = generate_data(
          n_train=self.n_train,
          n_test=self.n_test,
          behaviour="new",
          contamination=self.contamination,
          random_state=self.random_state,
      )
  
      self.base_estimators = [
          LOF(n_neighbors=5, contamination=self.contamination),
          LOF(n_neighbors=15, contamination=self.contamination),
          LOF(n_neighbors=25, contamination=self.contamination),
          LOF(n_neighbors=35, contamination=self.contamination),
          LOF(n_neighbors=45, contamination=self.contamination),
          HBOS(contamination=self.contamination),
          PCA(contamination=self.contamination),
          LSCP(
              detector_list=[
                  LOF(n_neighbors=5, contamination=self.contamination),
                  LOF(n_neighbors=15, contamination=self.contamination),
              ],
              random_state=self.random_state,
          ),
      ]
  
      this_directory = os.path.abspath(os.path.dirname(__file__))
  
      self.cost_forecast_loc_fit_ = load_predictor_train(
          os.path.join(this_directory, "saved_models/bps_train.joblib")
      )
  
      self.cost_forecast_loc_pred_ = load_predictor_prediction(
          os.path.join(
              this_directory, "saved_models/bps_prediction.joblib"
          )
      )
  
      self.model = SUOD(
          base_estimators=self.base_estimators,
          n_jobs=2,
          rp_flag_global=True,
          bps_flag=True,
          contamination=self.contamination,
          approx_flag_global=True,
          cost_forecast_loc_fit=self.cost_forecast_loc_fit_,
          cost_forecast_loc_pred=self.cost_forecast_loc_pred_,
          verbose=True,
      )
  
file_path: SUOD/suod/test/test_model_save_load.py
imports: import os
  import sys
  import unittest
  from suod.models.base import SUOD
  from pyod.utils.data import generate_data
  from pyod.models.lof import LOF
  from pyod.models.pca import PCA
  from pyod.models.hbos import HBOS
  from pyod.models.lscp import LSCP
  from joblib import dump, load
  from suod.models.base import load_predictor_train
  from suod.models.base import load_predictor_prediction
label_desc: Use image node_id 1 for calling the TestModelSaveLoad obj's underlying member method code with example usage: obj.setUp() without return types