code: def check_if_dataframes_are_equal(df1, df2):
      """Check that pandas DataFrames are equal."""
      from pandas.testing import assert_frame_equal
  
      try:
          assert_frame_equal(df1, df2)
          return True
      except AssertionError:
          return False
  
file_path: sktime/sktime/transformations/panel/tests/test_sliding_window_segmenter_transformer.py
imports: import numpy
  import pandas
  import pytest
  from sktime.transformations.panel.segment import SlidingWindowSegmenter
  from sktime.utils._testing.panel import _make_nested_from_array
label_desc: Use image node_id 5 for calling a global function with example usage: check_if_dataframes_are_equal(df1, df2) and returns: True, False