code: def test_repeated_serialize(session_global_datadir):
      repeated = Repeated(
          dtype=Label(
              path=str(session_global_datadir / "imagenet_labels.txt")
          )
      )
      assert repeated.deserialize(
          *({"label": "chickadee"}, {"label": "stingray"})
      ) == (
          torch.tensor(19),
          torch.tensor(6),
      )
      assert repeated.serialize(
          (torch.tensor(19), torch.tensor(6))
      ) == ("chickadee", "stingray")
      assert repeated.serialize(torch.tensor([19, 6])) == (
          "chickadee",
          "stingray",
      )
  
file_path: lightning-flash/tests/core/serve/test_types/test_repeated.py
imports: import pytest
  import torch
  from flash.core.serve.types import Label, Repeated
  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_repeated_serialize(session_global_datadir) without return types