code: def is_same_as(df, df_to_compare, **kwargs):
      
      try:
          tm.assert_frame_equal(df, df_to_compare, **kwargs)
      except AssertionError as exc:
          six.raise_from(AssertionError("DataFrames are not equal"), exc)
      return df
docs: Assert that two pandas dataframes are the equal
  
      Parameters
      ==========
      df : pandas DataFrame
      df_to_compare : pandas DataFrame
      **kwargs : dict
          keyword arguments passed through to panda's ``assert_frame_equal``
  
      Returns
      =======
      df : DataFrame