code: def test_deserialize():
      arr = torch.tensor([100, 200]).view(1, 2)
      table = Table(column_names=["t1", "t2"])
      assert (
          table.deserialize({"t1": {0: 100}, "t2": {0: 200}}).dtype
          == torch.int64
      )
      assert (
          table.deserialize({"t1": {0: 100}, "t2": {0: 200.0}}).dtype
          == torch.float64
      )
      assert torch.allclose(
          arr, table.deserialize({"t1": {0: 100}, "t2": {0: 200}})
      )
      with pytest.raises(RuntimeError):
          table.deserialize({"title1": {0: 100}, "title2": {0: 200}})
      assert torch.allclose(
          table.deserialize({"t1": {0: 100.0}, "t2": {1: 200.0}}),
          torch.tensor(
              [[100.0, float("nan")], [float("nan"), 200.0]],
              dtype=torch.float64,
          ),
          equal_nan=True,
      )
  
file_path: lightning-flash/tests/core/serve/test_types/test_table.py
imports: import pytest
  import torch
  from flash.core.serve.types import Table
  from flash.core.utilities.imports import _TOPIC_SERVE_AVAILABLE
label_desc: Use image node_id 4 for calling a global function with example usage: test_deserialize() without return types