code: def test_sort_slice_fast_path_5245() -> None:
      df = pl.DataFrame(
          {
              "foo": ["f", "c", "b", "a"],
              "bar": [1, 2, 3, 4],
          }
      ).lazy()
  
      assert df.sort("foo").limit(1).select("foo").collect().to_dict(
          as_series=False
      ) == {"foo": ["a"]}
  
imports: from __future__ import annotations
  from datetime import date, datetime
  from typing import Any
  import pytest
  import polars
  from polars.testing import assert_frame_equal, assert_series_equal
label_desc: Use image node_id 17 for calling a global function with example usage: test_sort_slice_fast_path_5245() without return types