code: def test_serialize_deserialize_dataset():
      with tmpfile() as fn:
          create_test_dataset(fn)
          with netCDF4.Dataset(fn, mode="r") as f:
              g = deserialize(*serialize(f))
              assert f.filepath() == g.filepath()
              assert isinstance(g, netCDF4.Dataset)
  
              assert g.variables["x"].dimensions == ("x",)
              assert g.variables["x"].dtype == np.int32
              assert (g.variables["x"][:] == np.arange(3)).all()
  
file_path: distributed/distributed/protocol/tests/test_netcdf4.py
imports: from __future__ import annotations
  import pytest
  from dask.utils import tmpfile
  from distributed.protocol import deserialize, serialize
  import dask.array
  from distributed.utils_test import gen_cluster
label_desc: Use image node_id 2 for calling a global function with example usage: test_serialize_deserialize_dataset() without return types