code: def test_tensor():
      x = np.arange(10)
      t = torch.Tensor(x)
      header, frames = serialize(t)
      assert header["serializer"] == "dask"
      t2 = deserialize(header, frames)
      assert (x == t2.numpy()).all()
  
imports: from __future__ import annotations
  import pytest
  from distributed.protocol import deserialize, serialize
label_desc: Use image node_id 1 for calling a global function with example usage: test_tensor() without return types