code: def assert_df(g, p):
      # assert_eq() with sorted index of dataframes
      g = g.sort_index()
      p = p.sort_index()
      return assert_eq(g, p)
  
imports: import itertools
  import random
  import numpy
  import pandas
  import pytest
  import cudf
  from cudf import concat
  from cudf.testing._utils import _create_pandas_series_float64_default, assert_eq, assert_exceptions_equal
label_desc: Use image node_id 1 for calling a global function with example usage: assert_df(g, p) and returns: assert_eq