code: def test_declarative_base(self):
      with self._expect_warning("declarative_base"):
          Base = legacy_decl.declarative_base()
  
      class Foo(Base):
          __tablename__ = "foo"
          id = sa.Column(sa.Integer, primary_key=True)
  
      assert inspect(Foo).mapper
  
file_path: sqlalchemy/test/ext/declarative/test_deprecations.py
imports: import sqlalchemy
  from sqlalchemy import inspect
  from sqlalchemy.ext import declarative
  from sqlalchemy.testing import eq_
  from sqlalchemy.testing import expect_deprecated_20
  from sqlalchemy.testing import fixtures
  from sqlalchemy.testing import is_false
  from sqlalchemy.testing import is_true
label_desc: Use image node_id 2 for calling the DeprecatedImportsTest obj's underlying member method code with example usage: obj.test_declarative_base() without return types