code: def test_name(db: SQLAlchemy) -> None:
      class FOOBar(db.Model):
          id = sa.Column(sa.Integer, primary_key=True)
  
      class BazBar(db.Model):
          id = sa.Column(sa.Integer, primary_key=True)
  
      class Ham(db.Model):
          __tablename__ = "spam"
          id = sa.Column(sa.Integer, primary_key=True)
  
      assert FOOBar.__tablename__ == "foo_bar"
      assert BazBar.__tablename__ == "baz_bar"
      assert Ham.__tablename__ == "spam"
  
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 2 for calling a global function with example usage: test_name(db) without return types