code: def create_server_app() -> FastAPI:
      """Configure the argilla server"""
  
      app = FastAPI(
          title="Argilla",
          description="Argilla API",
          # Disable default openapi configuration
          openapi_url="/api/docs/spec.json",
          docs_url="/api/docs" if settings.docs_enabled else None,
          redoc_url=None,
          version=str(argilla_version),
      )
  
      @app.get("/docs", include_in_schema=False)
      async def redirect_docs():
          return RedirectResponse(url=f"{settings.base_url}api/docs")
  
      @app.get("/api", include_in_schema=False)
      async def redirect_api():
          return RedirectResponse(url=f"{settings.base_url}api/docs")
  
      for app_configure in [
          configure_app_logging,
          configure_database,
          configure_storage,
          configure_telemetry,
          configure_middleware,
          configure_api_exceptions,
          configure_app_security,
          configure_api_router,
          configure_app_statics,
      ]:
          app_configure(app)
  
      return app
  
imports: import contextlib
  import glob
  import inspect
  import logging
  import os
  import shutil
  import tempfile
  from pathlib import Path
  import backoff
  from brotli_asgi import BrotliMiddleware
  from fastapi import FastAPI
  from fastapi.exceptions import RequestValidationError
  from starlette.middleware.cors import CORSMiddleware
  from starlette.responses import RedirectResponse
  from argilla import __version__
  from argilla.logging import configure_logging
  from argilla.server import helpers
  from argilla.server.constants import DEFAULT_API_KEY, DEFAULT_PASSWORD, DEFAULT_USERNAME
  from argilla.server.contexts import accounts
  from argilla.server.daos.backend import GenericElasticEngineBackend
  from argilla.server.daos.backend.base import GenericSearchError
  from argilla.server.daos.datasets import DatasetsDAO
  from argilla.server.daos.records import DatasetRecordsDAO
  from argilla.server.database import get_async_db
  from argilla.server.errors import APIErrorHandler, BadRequestError, ClosedDatasetError, EntityAlreadyExistsError, EntityNotFoundError, ForbiddenOperationError, InvalidTextSearchError, MissingInputParamError, UnauthorizedError, WrongTaskError
  from argilla.server.models import User
  from argilla.server.pydantic_v1 import ValidationError
  from argilla.server.pydantic_v1.errors import ConfigError
  from argilla.server.routes import api_router
  from argilla.server.security import auth
  from argilla.server.settings import settings
  from argilla.server.static_rewrite import RewriteStaticFiles
label_desc: Use image node_id 1 for calling a global function with example usage: create_server_app() and returns: app, RedirectResponse, RedirectResponse