code: def test_deserialize():
      num = Number()
      assert num.deserialize(1).shape == torch.Size([1, 1])
      assert torch.allclose(num.deserialize(1), torch.tensor([[1]]))
      assert num.deserialize(1).dtype == torch.int64
      assert num.deserialize(2.0).dtype == torch.float32
  
imports: import pytest
  import torch
  from flash.core.serve.types import Number
  from flash.core.utilities.imports import _TOPIC_SERVE_AVAILABLE
label_desc: Use image node_id 2 for calling a global function with example usage: test_deserialize() without return types