code: def test_manual_name(db: SQLAlchemy) -> None:
      """Setting a manual name prevents generation for the immediate model. A
      name is generated for joined but not single-table inheritance.
      """
  
      class Duck(db.Model):
          __tablename__ = "DUCK"
          id = sa.Column(sa.Integer, primary_key=True)
          type = sa.Column(sa.String)
  
          __mapper_args__ = {"polymorphic_on": type}
  
      class Daffy(Duck):
          id = sa.Column(
              sa.Integer, sa.ForeignKey(Duck.id), primary_key=True
          )
  
          __mapper_args__ = {"polymorphic_identity": "Tower"}  # type: ignore[dict-item]
  
      class Donald(Duck):
          __mapper_args__ = {"polymorphic_identity": "Mouse"}  # type: ignore[dict-item]
  
      assert Duck.__tablename__ == "DUCK"
      assert Daffy.__tablename__ == "daffy"
      assert "__tablename__" not in Donald.__dict__
      assert Donald.__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 9 for calling a global function with example usage: test_manual_name(db) without return types