code: def deserialize_sparse(header, frames):
      coords_frames = frames[: header["nframes"][0]]
      data_frames = frames[header["nframes"][0] :]
  
      coords = deserialize(header["coords-header"], coords_frames)
      data = deserialize(header["data-header"], data_frames)
  
      shape = header["shape"]
  
      return sparse.COO(coords, data, shape=shape)
  
imports: from __future__ import annotations
  import sparse
  from distributed.protocol.serialize import dask_deserialize, dask_serialize, deserialize, serialize
label_desc: Use image node_id 2 for calling a global function with example usage: deserialize_sparse(header, frames) and returns: sparse