code: def _create_database(
      db_filename: str,
      models: List[Type["SQLModel"]],
      echo: bool = False,
  ):
      global engine
  
      from sqlmodel import create_engine
  
      engine = create_engine(
          f"sqlite:///{pathlib.Path(db_filename).resolve()}", echo=echo
      )
  
      logger.debug(f"Creating the following tables {models}")
      try:
          SQLModel.metadata.create_all(engine)
      except Exception as ex:
          logger.debug(ex)
  
imports: import functools
  import json
  import pathlib
  from typing import Any, Dict, Generic, List, Type, TypeVar
  from fastapi import Response, status
  from fastapi.encoders import jsonable_encoder
  from lightning_utilities.core.imports import RequirementCache
  from pydantic import BaseModel, parse_obj_as
  from lightning.app.utilities.app_helpers import Logger
  from lightning.app.utilities.imports import _is_sqlmodel_available
label_desc: Use image node_id 3 for calling a global function with example usage: _create_database(db_filename, models, echo) without return types