code: def test_copy_naming_convention(
      app: Flask, model_class: t.Any
  ) -> None:
      app.config["SQLALCHEMY_BINDS"] = {"a": "sqlite://"}
      if model_class is not Model:
          model_class.metadata = sa.MetaData(
              naming_convention={"pk": "spk_%(table_name)s"}
          )
          db = SQLAlchemy(app, model_class=model_class)
      else:
          db = SQLAlchemy(
              app,
              metadata=sa.MetaData(
                  naming_convention={"pk": "spk_%(table_name)s"}
              ),
          )
      assert db.metadata.naming_convention["pk"] == "spk_%(table_name)s"
      assert (
          db.metadatas["a"].naming_convention
          == db.metadata.naming_convention
      )
  
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 8 for calling a global function with example usage: test_copy_naming_convention(app, model_class) without return types