code: def launch_api(
      opyrator: str,
      port: int = typer.Option(8080, "--port", "-p"),
      host: str = typer.Option("0.0.0.0", "--host", "-h"),
  ) -> None:
      """Start a HTTP API server for the opyrator.
  
      This will launch a FastAPI server based on the OpenAPI standard and with an automatic interactive documentation.
      """
      # Add the current working directory to the sys path
      # This is required to resolve the opyrator path
      sys.path.append(os.getcwd())
  
      from opyrator.api.fastapi_app import launch_api  # type: ignore
  
      launch_api(opyrator, port, host)
  
file_path: opyrator/src/opyrator/_cli.py
imports: import os
  import sys
  import typer
  from pydantic.error_wrappers import ValidationError
  from opyrator.export import ExportFormat
label_desc: Use image node_id 2 for calling a global function with example usage: launch_api(opyrator, port, host) without return types