code: def test_mean_overflow() -> None:
      np.random.seed(1)
      expected = 769.5607652
  
      df = pl.DataFrame(
          np.random.randint(500, 1040, 5000000), schema=["value"]
      )
  
      result = df.with_columns(pl.mean("value"))[0, 0]
      assert np.isclose(result, expected)
  
      result = df.with_columns(
          pl.col("value").cast(pl.Int32)
      ).with_columns(pl.mean("value"))[0, 0]
      assert np.isclose(result, expected)
  
      result = (
          df.with_columns(pl.col("value").cast(pl.Int32))
          .get_column("value")
          .mean()
      )
      assert np.isclose(result, expected)
  
file_path: polars/py-polars/tests/benchmark/test_release.py
imports: import time
  from pathlib import Path
  from typing import cast
  import numpy
  import pytest
  import polars
  from polars.testing import assert_frame_equal
label_desc: Use image node_id 3 for calling a global function with example usage: test_mean_overflow() without return types