code: def test_metadata_has_table(db: SQLAlchemy) -> None:
      user = db.Table(
          "user", sa.Column("id", sa.Integer, primary_key=True)
      )
  
      class User(db.Model):
          pass
  
      assert User.__table__ is user
  
imports: from __future__ import annotations
  import inspect
  import typing
  import pytest
  import sqlalchemy
  import sqlalchemy.exc
  import sqlalchemy.orm
  from flask_sqlalchemy import SQLAlchemy
  from flask_sqlalchemy.model import camel_to_snake_case
label_desc: Use image node_id 12 for calling a global function with example usage: test_metadata_has_table(db) without return types