code: def test_repeated_deserialize():
      repeated = Repeated(dtype=Label(classes=["classA", "classB"]))
      res = repeated.deserialize(
          *(
              {"label": "classA"},
              {"label": "classA"},
              {"label": "classB"},
          )
      )
      assert res == (torch.tensor(0), torch.tensor(0), torch.tensor(1))
  
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 1 for calling a global function with example usage: test_repeated_deserialize() without return types