code: def _factory_forecasting_validation(
      dataset_loader: Callable,
      cv_splitter: BaseSplitter,
      scorers: List[BaseMetric],
  ) -> Callable:
      """Build validation func which just takes a forecasting estimator."""
      return functools.partial(
          forecasting_validation,
          dataset_loader,
          cv_splitter,
          scorers,
      )
  
file_path: sktime/sktime/benchmarking/forecasting.py
imports: import functools
  from typing import Callable, Dict, List, Optional, Union
  from sktime.benchmarking.benchmarks import BaseBenchmark
  from sktime.forecasting.base import BaseForecaster
  from sktime.forecasting.model_evaluation import evaluate
  from sktime.performance_metrics.base import BaseMetric
  from sktime.split.base import BaseSplitter
label_desc: Use image node_id 2 for calling a global function with example usage: _factory_forecasting_validation(dataset_loader, cv_splitter, scorers) and returns: functools