code: def test_wrap_aggregate_empty_series(
      downsampler, gap_handler, series, index_type
  ):
      empty_series = series.copy()
      empty_series.index = construct_index(empty_series, index_type)
      empty_series = empty_series.iloc[0:0]
      x_agg, y_agg, indices = wrap_aggregate(
          hf_x=empty_series.index,
          hf_y=empty_series.values,
          downsampler=downsampler(),
          gap_handler=gap_handler(),
          n_out=1000,
      )
      assert len(x_agg) == len(y_agg) == len(indices) == 0
  
imports: import numpy
  import pandas
  import pytest
  from pytest_lazyfixture import lazy_fixture
  from plotly_resampler.aggregation import LTTB, EveryNthPoint, FuncAggregator, MedDiffGapHandler, MinMaxAggregator, MinMaxLTTB, MinMaxOverlapAggregator, NoGapHandler
  from .utils import construct_index, wrap_aggregate
label_desc: Use image node_id 6 for calling a global function with example usage: test_wrap_aggregate_empty_series(downsampler, gap_handler, series, index_type) without return types