code: def test_serialize_packed_dataframe_categorical():
      np.random.seed(0)
  
      df = DataFrame()
      df["keys"] = pd.Categorical(
          ["a", "a", "a", "b", "a", "b", "a", "b", "a", "c"]
      )
      df["vals"] = np.random.random(len(df))
  
      check_packed_serialized_equality(df)
  
imports: import pickle
  import sys
  import numpy
  import pandas
  from cudf import DataFrame, GenericIndex, Series
  from cudf._lib.copying import pack, unpack
  from cudf.testing._utils import assert_eq
label_desc: Use image node_id 23 for calling a global function with example usage: test_serialize_packed_dataframe_categorical() without return types