code: def test_composition_recieve_wrong_arg_type(
      lightning_squeezenet1_1_obj,
  ):
      # no endpoints or components
      with pytest.raises(TypeError):
          _ = Composition(hello="world")
  
      # no endpoints multiple components
      from tests.core.serve.models import (
          ClassificationInferenceComposable,
      )
  
      comp1 = ClassificationInferenceComposable(
          lightning_squeezenet1_1_obj
      )
      comp2 = ClassificationInferenceComposable(
          lightning_squeezenet1_1_obj
      )
  
      with pytest.raises(ValueError):
          _ = Composition(c1=comp1, c2=comp2)
  
file_path: lightning-flash/tests/core/serve/test_composition.py
imports: import base64
  from dataclasses import asdict
  import pytest
  from flash.core.serve import Composition, Endpoint
  from flash.core.utilities.imports import _FASTAPI_AVAILABLE, _TOPIC_SERVE_AVAILABLE
label_desc: Use image node_id 3 for calling a global function with example usage: test_composition_recieve_wrong_arg_type(lightning_squeezenet1_1_obj) without return types