code: def test_create_key_spec(
      app: Flask, bind_key: str | list[str | None]
  ) -> None:
      app.config["SQLALCHEMY_BINDS"] = {"a": "sqlite://"}
      db = SQLAlchemy(app)
  
      class User(db.Model):
          id = sa.Column(sa.Integer, primary_key=True)
  
      class Post(db.Model):
          __bind_key__ = "a"
          id = sa.Column(sa.Integer, primary_key=True)
  
      db.create_all(bind_key=bind_key)
      db.session.execute(sa.select(Post)).scalars()
  
      with pytest.raises(sa_exc.OperationalError):
          db.session.execute(sa.select(User)).scalars()
  
imports: from __future__ import annotations
  import typing
  import pytest
  import sqlalchemy
  import sqlalchemy.exc
  import sqlalchemy.orm
  from flask import Flask
  from flask_sqlalchemy import SQLAlchemy
  from flask_sqlalchemy.model import DefaultMeta
  from flask_sqlalchemy.model import Model
label_desc: Use image node_id 10 for calling a global function with example usage: test_create_key_spec(app, bind_key) without return types