code: def test_cycle_in_connection_fails(
      session_global_datadir, lightning_squeezenet1_1_obj
  ):
      from tests.core.serve.models import (
          ClassificationInferenceComposable,
      )
  
      c1 = ClassificationInferenceComposable(
          lightning_squeezenet1_1_obj
      )
  
      with pytest.raises(RuntimeError):
          c1.outputs.cropped_img >> c1.inputs.img
  
file_path: lightning-flash/tests/core/serve/test_integration.py
imports: import base64
  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 7 for calling a global function with example usage: test_cycle_in_connection_fails(session_global_datadir, lightning_squeezenet1_1_obj) without return types