code: def test_sort_top_k_fast_path() -> None:
      df = pl.DataFrame(
          {
              "a": [1, 2, None],
              "b": [6.0, 5.0, 4.0],
              "c": ["a", "c", "b"],
          }
      )
      # this triggers fast path as head is equal to n-rows
      assert df.lazy().sort("b").head(3).collect().to_dict(
          as_series=False
      ) == {
          "a": [None, 2, 1],
          "b": [4.0, 5.0, 6.0],
          "c": ["b", "c", "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 34 for calling a global function with example usage: test_sort_top_k_fast_path() without return types