code: def test_basic_assert_frame_equal(
      rdtype,
      rname,
      index,
      check_exact,
      check_dtype,
      check_names,
      check_like,
      mismatch,
  ):
      data = [1, 2, 1]
      p_left = pd.DataFrame(index=[1, 2, 3])
      p_left["a"] = np.array(data, dtype="int8")
      p_left["b"] = np.array(data, dtype="int16")
      if mismatch:
          p_left["c"] = np.array([1, 2, 3], dtype="int64")
      else:
          p_left["c"] = np.array(data, dtype="int64")
  
      p_right = pd.DataFrame(index=index)
      for dtype, name in zip(rdtype, rname):
          p_right[name] = np.array(data, dtype=dtype)
  
      left = cudf.from_pandas(p_left)
      right = cudf.from_pandas(p_right)
  
      kind = None
      try:
          pd.testing.assert_frame_equal(
              p_left,
              p_right,
              check_exact=check_exact,
              check_dtype=check_dtype,
              check_names=check_names,
              check_like=check_like,
          )
      except BaseException as e:
          kind = type(e)
  
      if kind is not None:
          with pytest.raises(kind):
              assert_frame_equal(
                  left,
                  right,
                  check_exact=check_exact,
                  check_dtype=check_dtype,
                  check_names=check_names,
                  check_like=check_like,
              )
      else:
          assert_frame_equal(
              left,
              right,
              check_exact=check_exact,
              check_dtype=check_dtype,
              check_names=check_names,
              check_like=check_like,
          )
  
imports: import numpy
  import pandas
  import pyarrow
  import pytest
  import cudf
  from cudf.core.column.column import as_column, full
  from cudf.testing import assert_frame_equal, assert_index_equal, assert_series_equal
  from cudf.testing._utils import NUMERIC_TYPES, OTHER_TYPES, assert_column_memory_eq, assert_column_memory_ne, assert_eq
  from cudf.testing.testing import assert_column_equal
label_desc: Use image node_id 5 for calling a global function with example usage: test_basic_assert_frame_equal(rdtype, rname, index, check_exact, check_dtype, check_names, check_like, mismatch) without return types