code: def test_dumps_serialize_pandas(df):
      header, frames = serialize(df)
      if "compression" in header:
          frames = decompress(header, frames)
      df2 = deserialize(header, frames)
  
      assert_eq(df, df2)
  
imports: from __future__ import annotations
  import pytest
  from dask.dataframe.utils import assert_eq
  from dask.utils import ensure_bytes
  from distributed.protocol import decompress, deserialize, dumps, loads, serialize, to_serialize
label_desc: Use image node_id 1 for calling a global function with example usage: test_dumps_serialize_pandas(df) without return types