code: def test_aggregate_function_deprecation_warning() -> None:
      df = pl.DataFrame(
          {"a": [1, 2], "b": ["foo", "foo"], "c": ["x", "x"]}
      )
      with pytest.raises(
          pl.ComputeError,
          match="found multiple elements in the same group",
      ):
          df.pivot("a", "b", "c")
  
imports: from __future__ import annotations
  from datetime import date, datetime, timedelta
  from typing import TYPE_CHECKING, Any
  import pytest
  import polars
  import polars.selectors
  from polars.exceptions import ComputeError
  from polars.testing import assert_frame_equal
label_desc: Use image node_id 13 for calling a global function with example usage: test_aggregate_function_deprecation_warning() without return types