code: def test_blend_model_custom_folds(load_pos_and_neg_data):
      """Test custom folds in blend_model"""
      exp = TSForecastingExperiment()
      setup_fold = 3
      exp.setup(
          data=load_pos_and_neg_data,
          fold=setup_fold,
          fh=12,
          fold_strategy="sliding",
          verbose=False,
      )
  
      #######################################
      # Test Tune Model with custom folds ##
      #######################################
      model = exp.create_model("naive")
      _ = exp.blend_models([model, model, model])
      metrics1 = exp.pull()
  
      custom_fold = 5
      _ = exp.blend_models([model, model, model], fold=custom_fold)
      metrics2 = exp.pull()
  
      assert len(metrics1) == setup_fold + 2  # + 2 for Mean and SD
      assert len(metrics2) == custom_fold + 2
  
file_path: pycaret/tests/test_time_series_blending.py
imports: import random
  import numpy
  import pandas
  import pytest
  from pycaret.datasets import get_data
  from pycaret.time_series import TSForecastingExperiment
label_desc: Use image node_id 4 for calling a global function with example usage: test_blend_model_custom_folds(load_pos_and_neg_data) without return types