code: def test_from_pandas():
      pdf = pd.DataFrame()
      pdf["a"] = np.arange(10, dtype=np.int32)
      pdf["b"] = np.arange(10, 20, dtype=np.float64)
  
      df = DataFrame.from_pandas(pdf)
  
      assert tuple(df.columns) == tuple(pdf.columns)
  
      assert df["a"].dtype == pdf["a"].dtype
      assert df["b"].dtype == pdf["b"].dtype
  
      assert len(df["a"]) == len(pdf["a"])
      assert len(df["b"]) == len(pdf["b"])
  
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 2 for calling a global function with example usage: test_from_pandas() without return types