code: def test_frame_equal_shape_mismatch(df1, df2, frame_or_series):
      df1 = DataFrame(df1)
      df2 = DataFrame(df2)
      msg = f"{frame_or_series.__name__} are different"
  
      with pytest.raises(AssertionError, match=msg):
          tm.assert_frame_equal(df1, df2, obj=frame_or_series.__name__)
  
imports: import pytest
  import pandas
  from pandas import DataFrame
  import pandas._testing
label_desc: Use image node_id 4 for calling a global function with example usage: test_frame_equal_shape_mismatch(df1, df2, frame_or_series) without return types