code: def _get_2x_declarative_bases(
      model_class: _FSA_MCT,
  ) -> list[
      t.Type[
          t.Union[sa_orm.DeclarativeBase, sa_orm.DeclarativeBaseNoMeta]
      ]
  ]:
      return [
          b
          for b in model_class.__bases__
          if issubclass(
              b, (sa_orm.DeclarativeBase, sa_orm.DeclarativeBaseNoMeta)
          )
      ]
  
imports: from __future__ import annotations
  import os
  import types
  import typing
  import warnings
  from weakref import WeakKeyDictionary
  import sqlalchemy
  import sqlalchemy.event
  import sqlalchemy.exc
  import sqlalchemy.orm
  from flask import abort
  from flask import current_app
  from flask import Flask
  from flask import has_app_context
  from .model import _QueryProperty
  from .model import BindMixin
  from .model import DefaultMeta
  from .model import DefaultMetaNoName
  from .model import Model
  from .model import NameMixin
  from .pagination import Pagination
  from .pagination import SelectPagination
  from .query import Query
  from .session import _app_ctx_id
  from .session import Session
  from .table import _Table
label_desc: Use image node_id 1 for calling a global function with example usage: _get_2x_declarative_bases(model_class) and returns: unknown