code: def test_custom_metadata_2x() -> None:
      custom_metadata = sa.MetaData()
  
      class Base(sa_orm.DeclarativeBase):
          metadata = custom_metadata
  
      db = SQLAlchemy(model_class=Base)
  
      assert db.metadata is custom_metadata
      assert db.metadata.info["bind_key"] is None
      assert db.Model.metadata is db.metadata
  
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 4 for calling a global function with example usage: test_custom_metadata_2x() without return types