code: def test_sort_with_null_12272() -> None:
      df = pl.DataFrame(
          {
              "a": [1.0, 1.0, 1.0],
              "b": [2.0, -1.0, None],
          }
      )
      out = df.select((pl.col("a") * pl.col("b")).alias("product"))
  
      assert out.sort("product").to_dict(as_series=False) == {
          "product": [None, -1.0, 2.0]
      }
  
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 42 for calling a global function with example usage: test_sort_with_null_12272() without return types