code: def test_rekey_wbase(self):
      class User(Base, ComparableEntity):
          __tablename__ = "users"
          __autoload_with__ = testing.db
          nom = Column("name", String(50), key="nom")
          addresses = relationship("Address", backref="user")
  
      class Address(Base, ComparableEntity):
          __tablename__ = "addresses"
          __autoload_with__ = testing.db
  
      u1 = User(
          nom="u1",
          addresses=[Address(email="one"), Address(email="two")],
      )
      sess = fixture_session()
      sess.add(u1)
      sess.flush()
      sess.expunge_all()
      eq_(
          sess.query(User).all(),
          [
              User(
                  nom="u1",
                  addresses=[
                      Address(email="one"),
                      Address(email="two"),
                  ],
              )
          ],
      )
      a1 = sess.query(Address).filter(Address.email == "two").one()
      eq_(a1, Address(email="two"))
      eq_(a1.user, User(nom="u1"))
      assert_raises(TypeError, User, name="u3")
  
imports: from sqlalchemy import ForeignKey
  from sqlalchemy import Integer
  from sqlalchemy import MetaData
  from sqlalchemy import String
  from sqlalchemy import testing
  from sqlalchemy.orm import clear_mappers
  from sqlalchemy.orm import decl_api
  from sqlalchemy.orm import relationship
  from sqlalchemy.testing import assert_raises
  from sqlalchemy.testing import eq_
  from sqlalchemy.testing import fixtures
  from sqlalchemy.testing.entities import ComparableEntity
  from sqlalchemy.testing.entities import ComparableMixin
  from sqlalchemy.testing.fixtures import fixture_session
  from sqlalchemy.testing.schema import Column
  from sqlalchemy.testing.schema import Table
label_desc: Use image node_id 3 for calling the DeclarativeReflectionTest obj's underlying member method code with example usage: obj.test_rekey_wbase() without return types