human
Complete the below
def as_declarative(**kw):

    ''''Class decorator for :func:`.declarative_base`.
    Provides a syntactical shortcut to the ``cls`` argument
    sent to :func:`.declarative_base`, allowing the base class
    to be converted in-place to a "declarative" base::
    from sqlalchemy.ext.declarative import as_declarative
    @as_declarative()
    class Base(object):
    @declared_attr
    def __tablename__(cls):
    return cls.__name__.lower()
    id = Column(Integer, primary_key=True)
    class MyMappedClass(Base):
    All keyword arguments passed to :func:`.as_declarative` are passed
    along to :func:`.declarative_base`.
    .. versionadded:: 0.8.3
    .. seealso::
    :func:`.declarative_base`'
    '''
assistant
#Here is the Python code you requested.
    def decorate(cls):
        kw['cls'] = cls
        kw['name'] = cls.__name__
        return declarative_base(**kw)
    return decorate