code: def test_primary_constraint(db: SQLAlchemy) -> None:
      """Primary key will be picked up from table args."""
  
      class Duck(db.Model):
          id = sa.Column(sa.Integer)
  
          __table_args__ = (sa.PrimaryKeyConstraint(id),)
  
      assert Duck.__table__ is not None
      assert Duck.__tablename__ == "duck"
  
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 10 for calling a global function with example usage: test_primary_constraint(db) without return types