code: def test_groupby_deprecated() -> None:
      df = pl.DataFrame({"a": [1, 1, 2], "b": [3, 4, 5]})
  
      with pytest.deprecated_call():
          result = df.groupby("a").agg(pl.sum("b"))
      with pytest.deprecated_call():
          result_lazy = (
              df.lazy().groupby("a").agg(pl.sum("b")).collect()
          )
  
      expected = df.group_by("a").agg(pl.sum("b"))
      assert_frame_equal(result, expected, check_row_order=False)
      assert_frame_equal(result_lazy, expected, check_row_order=False)
  
imports: from __future__ import annotations
  from collections import OrderedDict
  from datetime import datetime, timedelta
  from typing import Any
  import pytest
  import polars
  from polars.testing import assert_frame_equal, assert_series_equal
label_desc: Use image node_id 29 for calling a global function with example usage: test_groupby_deprecated() without return types