code: def test_sort_nan_1942() -> None:
      # https://github.com/pola-rs/polars/issues/1942
      t0 = time.time()
      pl.repeat(float("nan"), 2 << 12, eager=True).sort()
      assert (time.time() - t0) < 1
  
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 2 for calling a global function with example usage: test_sort_nan_1942() without return types