code: def assert_df2(g, p):
      assert g.index.dtype == p.index.dtype
      np.testing.assert_equal(g.index.to_numpy(), p.index)
      assert tuple(g.columns) == tuple(p.columns)
      for k in g.columns:
          assert g[k].dtype == p[k].dtype
          np.testing.assert_equal(g[k].to_numpy(), p[k])
  
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 2 for calling a global function with example usage: assert_df2(g, p) without return types