code: def test_group_by_apply_first_input_is_literal() -> None:
      df = pl.DataFrame({"x": [1, 2, 3, 4, 5], "g": [1, 1, 2, 2, 2]})
      pow = df.group_by("g").agg(2 ** pl.col("x"))
      assert pow.sort("g").to_dict(as_series=False) == {
          "g": [1, 2],
          "x": [[2.0, 4.0], [8.0, 16.0, 32.0]],
      }
  
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 38 for calling a global function with example usage: test_group_by_apply_first_input_is_literal() without return types