code: def test_series_aggregate():
      data = pd.Series(
          np.random.rand(20),
          index=[str(i) for i in range(20)],
          name="a",
      )
      agg_funcs = [
          "sum",
          "min",
          "max",
          "mean",
          "var",
          "std",
          "all",
          "any",
          "skew",
          "kurt",
          "sem",
      ]
  
      series = from_pandas_series(data)
  
      result = tile(series.agg(agg_funcs))
      assert len(result.chunks) == 1
      assert result.shape == (len(agg_funcs),)
      assert list(result.index_value.to_pandas()) == agg_funcs
      assert result.op.output_types[0] == OutputType.series
      assert result.op.func == agg_funcs
  
      series = from_pandas_series(data, chunk_size=3)
  
      result = tile(series.agg("sum"))
      assert len(result.chunks) == 1
      assert result.shape == ()
      assert result.op.output_types[0] == OutputType.scalar
      agg_chunk = result.chunks[0]
      assert agg_chunk.shape == ()
      assert agg_chunk.op.stage == OperandStage.agg
  
      result = tile(series.agg(agg_funcs))
      assert len(result.chunks) == 1
      assert result.shape == (len(agg_funcs),)
      assert list(result.index_value.to_pandas()) == agg_funcs
      assert result.op.output_types[0] == OutputType.series
      assert result.op.func == agg_funcs
      agg_chunk = result.chunks[0]
      assert agg_chunk.shape == (len(agg_funcs),)
      assert list(agg_chunk.index_value.to_pandas()) == agg_funcs
      assert agg_chunk.op.stage == OperandStage.agg
  
      with pytest.raises(TypeError):
          series.agg(sum_0=(0, "sum"), mean_0=(0, "mean"))
  
imports: import functools
  import operator
  from functools import reduce
  from typing import NamedTuple
  import numpy
  import pandas
  import pytest
  from ....None import dataframe
  from ....core import tile
  from ....core.operand import OperandStage
  from ....tensor import Tensor
  from ...core import DataFrame, IndexValue, Series, OutputType
  from ...datasource.series import from_pandas
  from ...datasource.dataframe import from_pandas
  from ...merge import DataFrameConcat
  from ..None import DataFrameSum, DataFrameProd, DataFrameMin, DataFrameMax, DataFrameCount, DataFrameMean, DataFrameVar, DataFrameAll, DataFrameAny, DataFrameSkew, DataFrameKurtosis, DataFrameSem, DataFrameAggregate, DataFrameCummin, DataFrameCummax, DataFrameCumprod, DataFrameCumsum, DataFrameNunique, CustomReduction
  from ..aggregation import where_function
  from ..core import ReductionCompiler
label_desc: Use image node_id 7 for calling a global function with example usage: test_series_aggregate() without return types