code: def test_deserialize():
      bbox = BBox()
      assert torch.allclose(
          bbox.deserialize((0, 0, 0, 0)), torch.zeros((4,))
      )
      assert bbox.deserialize((0, 0, 0, 0)).shape == torch.Size([4])
      with pytest.raises(ValueError):
          # only three elements, need four
          bbox.deserialize((0, 1, 2))
      with pytest.raises(ValueError):
          # string in value
          bbox.deserialize(("hai", 1, 2, 3))
      with pytest.raises(TypeError):
          # dictionary
          bbox.deserialize({1: 1, 2: 2, 3: 3, 4: 4})
      with pytest.raises(ValueError):
          # tuple instead of float
          bbox.deserialize(
              (
                  (
                      0,
                      0,
                  ),
                  (0, 0),
                  (0, 0),
                  (0, 0),
              )
          )
  
imports: import pytest
  import torch
  from flash.core.serve.types import BBox
  from flash.core.utilities.imports import _TOPIC_SERVE_AVAILABLE
label_desc: Use image node_id 1 for calling a global function with example usage: test_deserialize() without return types