code: def test_min_max_2850() -> None:
      # https://github.com/pola-rs/polars/issues/2850
      df = pl.DataFrame(
          {
              "id": [
                  130352432,
                  130352277,
                  130352611,
                  130352833,
                  130352305,
                  130352258,
                  130352764,
                  130352475,
                  130352368,
                  130352346,
              ]
          }
      )
  
      minimum = 130352258
      maximum = 130352833.0
  
      for _ in range(10):
          permuted = df.sample(fraction=1.0, seed=0)
          computed = permuted.select(
              [
                  pl.col("id").min().alias("min"),
                  pl.col("id").max().alias("max"),
              ]
          )
          assert cast(int, computed[0, "min"]) == minimum
          assert cast(float, computed[0, "max"]) == maximum
  
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 4 for calling a global function with example usage: test_min_max_2850() without return types