code: def test_api():
      api_types = API.get_available_api_types()
      for api_type in api_types:
          api = API(api_type, dummy_model)
          assert isinstance(api.app, FastAPI)
  
file_path: chitra/tests/serve/test_api.py
imports: import asyncio
  from unittest.mock import MagicMock
  import numpy
  import pytest
  from fastapi import FastAPI
  from chitra.serve import API
  from chitra.serve import constants
  from chitra.serve import create_api
label_desc: Use image node_id 3 for calling a global function with example usage: test_api() without return types