code: def test_declarativebasemapped_2x(app: Flask) -> None:
      class Base(sa_orm.DeclarativeBase, sa_orm.MappedAsDataclass):
          pass
  
      db = SQLAlchemy(app, model_class=Base)
      assert issubclass(db.Model, sa_orm.DeclarativeBase)
      assert isinstance(
          db.Model, sa_orm.decl_api.DCTransformDeclarative
      )
  
imports: from __future__ import annotations
  import typing
  from datetime import datetime
  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 6 for calling a global function with example usage: test_declarativebasemapped_2x(app) without return types