code: def test_sort_row_fmt(str_ints_df: pl.DataFrame) -> None:
      # we sort nulls_last as this will always dispatch
      # to row_fmt and is the default in pandas
  
      df = str_ints_df
      df_pd = df.to_pandas()
  
      for descending in [True, False]:
          assert_frame_equal(
              df.sort(
                  ["strs", "vals"],
                  nulls_last=True,
                  descending=descending,
              ),
              pl.from_pandas(
                  df_pd.sort_values(
                      ["strs", "vals"], ascending=not descending
                  )
              ),
          )
  
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 25 for calling a global function with example usage: test_sort_row_fmt(str_ints_df) without return types