code: def compare_dataframe(left, right, nullable=True):
      if nullable and isinstance(left, cudf.DataFrame):
          left = left.to_pandas(nullable=True)
      if nullable and isinstance(right, cudf.DataFrame):
          right = right.to_pandas(nullable=True)
  
      if len(left.index) == 0 and len(right.index) == 0:
          check_index_type = False
      else:
          check_index_type = True
  
      return assert_eq(left, right, check_index_type=check_index_type)
  
file_path: cudf/python/cudf/cudf/_fuzz_testing/utils.py
imports: import random
  import fastavro
  import numpy
  import pandas
  import pyarrow
  import cudf
  from cudf.testing._utils import assert_eq
  from cudf.utils.dtypes import pandas_dtypes_to_np_dtypes, pyarrow_dtypes_to_pandas_dtypes
label_desc: Use image node_id 10 for calling a global function with example usage: compare_dataframe(left, right, nullable) and returns: assert_eq