code: def assert_frame_not_equal(
      left: DataFrame | LazyFrame,
      right: DataFrame | LazyFrame,
      *,
      check_row_order: bool = True,
      check_column_order: bool = True,
      check_dtype: bool = True,
      check_exact: bool = False,
      rtol: float = 1e-5,
      atol: float = 1e-8,
      categorical_as_str: bool = False,
  ) -> None:
      """
      Assert that the left and right frame are **not** equal.
  
      This function is intended for use in unit tests.
  
      Parameters
      ----------
      left
          The first DataFrame or LazyFrame to compare.
      right
          The second DataFrame or LazyFrame to compare.
      check_row_order
          Require row order to match.
  
          .. note::
              Setting this to `False` requires sorting the data, which will fail on
              frames that contain unsortable columns.
      check_column_order
          Require column order to match.
      check_dtype
          Require data types to match.
      check_exact
          Require float values to match exactly. If set to `False`, values are considered
          equal when within tolerance of each other (see `rtol` and `atol`).
          Only affects columns with a Float data type.
      rtol
          Relative tolerance for inexact checking. Fraction of values in `right`.
      atol
          Absolute tolerance for inexact checking.
      categorical_as_str
          Cast categorical columns to string before comparing. Enabling this helps
          compare columns that do not share the same string cache.
  
      See Also
      --------
      assert_frame_equal
      assert_series_not_equal
  
      Examples
      --------
      >>> from polars.testing import assert_frame_not_equal
      >>> df1 = pl.DataFrame({"a": [1, 2, 3]})
      >>> df2 = pl.DataFrame({"a": [1, 2, 3]})
      >>> assert_frame_not_equal(df1, df2)  # doctest: +SKIP
      Traceback (most recent call last):
      ...
      AssertionError: frames are equal
  
      """
      try:
          assert_frame_equal(
              left=left,
              right=right,
              check_column_order=check_column_order,
              check_row_order=check_row_order,
              check_dtype=check_dtype,
              check_exact=check_exact,
              rtol=rtol,
              atol=atol,
              categorical_as_str=categorical_as_str,
          )
      except AssertionError:
          return
      else:
          msg = "frames are equal"
          raise AssertionError(msg)
  
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 5 for calling a global function with example usage: assert_frame_not_equal(left, right) without return types