code: def test_component_parameters(lightning_squeezenet1_1_obj):
      comp1 = ClassificationInferenceComposable(
          lightning_squeezenet1_1_obj
      )
      comp2 = ClassificationInferenceComposable(
          lightning_squeezenet1_1_obj
      )
  
      with pytest.raises(TypeError):
          # Immutability test
          comp1.inputs["newkey"] = comp2.inputs["tag"]
  
      first_tag = comp1.outputs["predicted_tag"]
      second_tag = comp2.inputs["tag"]
      assert isinstance(first_tag.datatype, Label)
  
      assert first_tag.connections == []
      first_tag >> second_tag
      assert str(first_tag.connections[0]) == (
          "callnum_1.outputs.predicted_tag >> callnum_2.inputs.tag"
      )
      assert second_tag.connections == []
      assert (
          first_tag.connections == comp1._flashserve_meta_.connections
      )
  
file_path: lightning-flash/tests/core/serve/test_components.py
imports: import pytest
  import torch
  from flash.core.serve.types import Label
  from flash.core.utilities.imports import _TOPIC_SERVE_AVAILABLE
  from tests.core.serve.models import ClassificationInferenceComposable, LightningSqueezenet
label_desc: Use image node_id 6 for calling a global function with example usage: test_component_parameters(lightning_squeezenet1_1_obj) without return types