code: def _sort_dataframes(
      left: DataFrame, right: DataFrame
  ) -> tuple[DataFrame, DataFrame]:
      by = left.columns
      try:
          left = left.sort(by)
          right = right.sort(by)
      except ComputeError as exc:
          msg = "cannot set `check_row_order=False` on frame with unsortable columns"
          raise InvalidAssert(msg) from exc
      return left, right
  
file_path: polars/py-polars/polars/testing/asserts/frame.py
imports: from __future__ import annotations
  from typing import cast
  from polars.dataframe import DataFrame
  from polars.exceptions import ComputeError, InvalidAssert
  from polars.lazyframe import LazyFrame
  from polars.testing.asserts.series import _assert_series_values_equal
  from polars.testing.asserts.utils import raise_assertion_error
label_desc: Use image node_id 4 for calling a global function with example usage: _sort_dataframes(left, right) and returns: left,  right