code: def test_repeated_non_serve_dtype():
      class NonServeDtype:
          pass
  
      with pytest.raises(TypeError):
          Repeated(NonServeDtype())
  
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 4 for calling a global function with example usage: test_repeated_non_serve_dtype() without return types