code: def test_start_server_with_repeated_exposed(
      session_global_datadir, lightning_squeezenet1_1_obj
  ):
      from tests.core.serve.models import (
          ClassificationInferenceRepeated,
      )
  
      comp = ClassificationInferenceRepeated(
          lightning_squeezenet1_1_obj
      )
      composit = Composition(comp=comp, TESTING=True, DEBUG=True)
      app = composit.serve(host="0.0.0.0", port=8000)
      with TestClient(app) as tc:
          meta = tc.get("http://127.0.0.1:8000/classify/meta")
          assert meta.status_code == 200
          with (session_global_datadir / "fish.jpg").open("rb") as f:
              imgstr = base64.b64encode(f.read()).decode("UTF-8")
          body = {
              "session": "UUID",
              "payload": {"img": [{"data": imgstr}]},
          }
          resp = tc.post("http://127.0.0.1:8000/classify", json=body)
          assert "result" in resp.json()
          expected = {
              "session": "UUID",
              "result": {
                  "prediction": [
                      "goldfish, Carassius auratus",
                      "goldfish, Carassius auratus",
                  ],
                  "other": 21,
              },
          }
          assert resp.json() == expected
  
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 2 for calling a global function with example usage: test_start_server_with_repeated_exposed(session_global_datadir, lightning_squeezenet1_1_obj) without return types