code: def test_dumps_pandas_writable():
      a1 = np.arange(1000)
      s1 = pd.Series(a1)
      fs = dumps([to_serialize(s1)])
      # Make all frames read-only
      fs = list(map(ensure_bytes, fs))
      (s2,) = loads(fs)
      assert (s1 == s2).all()
      s2[...] = 0
  
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 2 for calling a global function with example usage: test_dumps_pandas_writable() without return types