code: def check_packed_equality(df):
      # basic
      assert_packed_frame_equality(df)
      # sliced
      assert_packed_frame_equality(df[:-1])
      assert_packed_frame_equality(df[1:])
      assert_packed_frame_equality(df[2:-2])
      # sorted
      sortvaldf = df.sort_values("vals")
      assert isinstance(sortvaldf.index, GenericIndex)
      assert_packed_frame_equality(sortvaldf)
  
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 2 for calling a global function with example usage: check_packed_equality(df) without return types