code: def test_splitter_using_fold_and_fh(
      fold, fh, fold_strategy, load_pos_and_neg_data
  ):
      """Tests the splitter creation using fold, fh and a string value for fold_strategy."""
  
      from sktime.forecasting.model_selection._split import (
          ExpandingWindowSplitter,
          SlidingWindowSplitter,
      )
  
      from pycaret.time_series import setup
  
      exp_name = setup(
          data=load_pos_and_neg_data,
          fold=fold,
          fh=fh,
          fold_strategy=fold_strategy,
      )
  
      allowed_fold_strategies = ["expanding", "rolling", "sliding"]
      if fold_strategy in allowed_fold_strategies:
          if (fold_strategy == "expanding") or (
              fold_strategy == "rolling"
          ):
              assert isinstance(
                  exp_name.fold_generator, ExpandingWindowSplitter
              )
          elif fold_strategy == "sliding":
              assert isinstance(
                  exp_name.fold_generator, SlidingWindowSplitter
              )
  
          if isinstance(fh, int):
              # Since fh is an int, we can check as follows ----
              assert np.all(
                  exp_name.fold_generator.fh == np.arange(1, fh + 1)
              )
              assert exp_name.fold_generator.step_length == fh
          else:
              assert np.all(exp_name.fold_generator.fh == fh)
  
              # When fh has np gaps: e.g. fh = np.arange(1, 37), step length = 36
              # When fh has gaps, e.g. fh = np.arange(25, 37), step length = 12
              assert exp_name.fold_generator.step_length == len(fh)
  
imports: import math
  import numpy
  import pandas
  import pytest
  from time_series_test_utils import _get_seasonal_values, _get_seasonal_values_alphanumeric, _return_data_seasonal_types_strictly_pos, _return_setup_args_raises, _return_splitter_args
  from pycaret.datasets import get_data
  from pycaret.time_series import TSForecastingExperiment
label_desc: Use image node_id 1 for calling a global function with example usage: test_splitter_using_fold_and_fh(fold, fh, fold_strategy, load_pos_and_neg_data) without return types