code: def test_serialize_dataframe_with_index():
      df = cudf.DataFrame()
      df["a"] = np.arange(100)
      df["b"] = np.random.random(100)
      df["c"] = pd.Categorical(
          ["a", "b", "c", "_", "_"] * 20, categories=["a", "b", "c"]
      )
      df = df.sort_values("b")
      outdf = cudf.DataFrame.deserialize(*df.serialize())
      assert_eq(df, outdf)
  
imports: import pickle
  import msgpack
  import numpy
  import pandas
  import pytest
  import cudf
  from cudf.testing import _utils
  from cudf.testing._utils import assert_eq
label_desc: Use image node_id 4 for calling a global function with example usage: test_serialize_dataframe_with_index() without return types