code: def test_avg_mean(forecasters):
      """Assert `mean` aggfunc returns the same values as `average` with equal weights."""
      y = make_forecasting_problem()
      forecaster = EnsembleForecaster(forecasters)
      forecaster.fit(y, fh=[1, 2, 3])
      mean_pred = forecaster.predict()
  
      forecaster_1 = EnsembleForecaster(
          forecasters, aggfunc="mean", weights=[1, 1]
      )
      forecaster_1.fit(y, fh=[1, 2, 3])
      avg_pred = forecaster_1.predict()
  
      pd.testing.assert_series_equal(mean_pred, avg_pred)
  
file_path: sktime/sktime/forecasting/compose/tests/test_ensemble.py
imports: import numpy
  import pandas
  import pytest
  from sktime.forecasting.compose import EnsembleForecaster
  from sktime.forecasting.compose._ensemble import VALID_AGG_FUNCS
  from sktime.forecasting.naive import NaiveForecaster
  from sktime.forecasting.trend import PolynomialTrendForecaster
  from sktime.utils._testing.forecasting import make_forecasting_problem
label_desc: Use image node_id 1 for calling a global function with example usage: test_avg_mean(forecasters) without return types