code: def test_error_on_empty_group_by() -> None:
      with pytest.raises(
          pl.ComputeError,
          match="at least one key is required in a group_by operation",
      ):
          pl.DataFrame({"x": [0, 0, 1, 1]}).group_by([]).agg(pl.count())
  
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 1 for calling a global function with example usage: test_error_on_empty_group_by() without return types