code: def gen_orm_classes_from_base(base: Type) -> Generator[Type, None, None]:
      
      for cls in gen_all_subclasses(base):
          if _get_immediate_cls_attr(cls, '__abstract__', strict=True):
              # This is SQLAlchemy's own way of detecting abstract classes; see
              # sqlalchemy.ext.declarative.base
              continue  # NOT an ORM class
          yield cls
docs: From an SQLAlchemy ORM base class, yield all the subclasses (except those
      that are abstract).
  
      If you begin with the proper :class`Base` class, then this should give all
      ORM classes in use.