code: def fcst_iterator(fcst, start_dates):
      """
      :param fcst: list of numpy arrays with the sample paths
      :return:
      """
      for i in range(len(fcst)):
          yield SampleForecast(
              samples=fcst[i],
              start_date=start_dates[i],
          )
  
file_path: gluonts/test/evaluation/test_evaluator.py
imports: import numpy
  import pandas
  import pytest
  from gluonts.evaluation import Evaluator, MultivariateEvaluator, aggregate_valid
  from gluonts.model.forecast import QuantileForecast, SampleForecast
label_desc: Use image node_id 2 for calling a global function with example usage: fcst_iterator(fcst, start_dates) without return types