code: def test_list_min_max() -> None:
      for dt in pl.INTEGER_DTYPES | pl.FLOAT_DTYPES:
          df = pl.DataFrame(
              {"a": [[1], [1, 2, 3], [1, 2, 3, 4], [1, 2, 3, 4, 5]]},
              schema={"a": pl.List(dt)},
          )
          result = df.select(pl.col("a").list.min())
          expected = df.select(pl.col("a").list.first())
          assert_frame_equal(result, expected)
  
          result = df.select(pl.col("a").list.max())
          expected = df.select(pl.col("a").list.last())
          assert_frame_equal(result, expected)
  
      df = pl.DataFrame(
          {
              "a": [
                  [1],
                  [1, 5, -1, 3],
                  [1, 2, 3, 4],
                  [1, 2, 3, 4, 5],
                  None,
              ]
          },
      )
      assert df.select(pl.col("a").list.min()).to_dict(
          as_series=False
      ) == {"a": [1, -1, 1, 1, None]}
      assert df.select(pl.col("a").list.max()).to_dict(
          as_series=False
      ) == {"a": [1, 5, 4, 5, None]}
  
imports: from __future__ import annotations
  import pickle
  from datetime import date, datetime, time
  from typing import TYPE_CHECKING, Any
  import pandas
  import pytest
  import polars
  from polars.testing import assert_frame_equal, assert_series_equal
label_desc: Use image node_id 23 for calling a global function with example usage: test_list_min_max() without return types