code: def test_invalid_group_by_arg() -> None:
      df = pl.DataFrame({"a": [1]})
      with pytest.raises(
          TypeError,
          match="specifying aggregations as a dictionary is not supported",
      ):
          df.group_by(1).agg({"a": "sum"})
  
imports: from __future__ import annotations
  import io
  from datetime import date, datetime, time
  from decimal import Decimal
  from typing import TYPE_CHECKING, Any
  import numpy
  import pytest
  import polars
  from polars.datatypes.convert import dtype_to_py_type
  from polars.exceptions import InvalidOperationError
label_desc: Use image node_id 44 for calling a global function with example usage: test_invalid_group_by_arg() without return types