code: def configure_database(app: FastAPI):
      def _user_has_default_credentials(user: User):
          return (
              user.api_key == DEFAULT_API_KEY
              or accounts.verify_password(
                  DEFAULT_PASSWORD, user.password_hash
              )
          )
  
      def _log_default_user_warning():
          _LOGGER.warning(
              f"User {DEFAULT_USERNAME!r} with default credentials has been found in the database. "
              "If you are using argilla in a production environment this can be a serious security problem. "
              f"We recommend that you create a new admin user and then delete the default {DEFAULT_USERNAME!r} one."
          )
  
      @app.on_event("startup")
      async def log_default_user_warning_if_present():
          async with _get_db_wrapper() as db:
              default_user = await accounts.get_user_by_username(
                  db, DEFAULT_USERNAME
              )
              if default_user and _user_has_default_credentials(
                  default_user
              ):
                  _log_default_user_warning()
  
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 10 for calling a global function with example usage: configure_database(app) and returns: unknown