code: def test_to_pandas():
      df = DataFrame()
      df["a"] = np.arange(5, dtype=np.int32)
      df["b"] = np.arange(10, 15, dtype=np.float64)
      df["c"] = np.array([True, False, None, True, True])
  
      pdf = df.to_pandas()
  
      assert tuple(df.columns) == tuple(pdf.columns)
  
      assert df["a"].dtype == pdf["a"].dtype
      assert df["b"].dtype == pdf["b"].dtype
  
      # Notice, the dtype differ when Pandas and cudf boolean series
      # contains None/NaN
      assert df["c"].dtype == np.bool_
      assert pdf["c"].dtype == np.object_
  
      assert len(df["a"]) == len(pdf["a"])
      assert len(df["b"]) == len(pdf["b"])
      assert len(df["c"]) == len(pdf["c"])
  
file_path: cudf/python/cudf/cudf/tests/test_pandas_interop.py
imports: import numpy
  import pandas
  import cudf
  from cudf import DataFrame
  from cudf.testing._utils import assert_eq
label_desc: Use image node_id 1 for calling a global function with example usage: test_to_pandas() without return types