code: def test_custom_declarative_class_1x(app: Flask, base: t.Any) -> None:
      class CustomMeta(DefaultMeta):
          pass
  
      CustomModel = sa_orm.declarative_base(
          cls=base, name="Model", metaclass=CustomMeta
      )
      db = SQLAlchemy(app, model_class=CustomModel)
      assert db.Model is CustomModel
      assert db.Model.query_class is db.Query
      assert "query" in db.Model.__dict__
  
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 3 for calling a global function with example usage: test_custom_declarative_class_1x(app, base) without return types