code: def create_all_tables(engine: Engine) -> None:
      """Create all tables that inherit from Base.
  
      Args:
          engine: a SQLAlchemy engine with a connection to a MySQL
              or SQLite DB.
  
      Note:
          In order for all tables to be correctly created, all modules that
          define a mapped class that inherits from `Base` must be imported.
  
      """
      if (
          engine.dialect.name == "mysql"
          and engine.dialect.default_schema_name == "ax"
      ):
          raise ValueError(
              "The open-source Ax table creation is likely not applicable in this case,"
              + "please contact the Adaptive Experimentation team if you need help."
          )
      Base.metadata.create_all(engine)
  
file_path: Ax/ax/storage/sqa_store/db.py
imports: from __future__ import annotations
  from contextlib import contextmanager
  from typing import Any, Callable, Generator, Optional, TypeVar
  from sqlalchemy import create_engine
  from sqlalchemy.engine.base import Engine
  from sqlalchemy.ext.declarative import declarative_base
  from sqlalchemy.orm import scoped_session, Session, sessionmaker
label_desc: Use image node_id 6 for calling a global function with example usage: create_all_tables(engine) without return types