code: def test_has_inherited_table(self, registry):
      @registry.mapped
      class Foo:
          __tablename__ = "foo"
          id = sa.Column(sa.Integer, primary_key=True)
  
      @registry.mapped
      class Bar(Foo):
          __tablename__ = "bar"
          id = sa.Column(sa.ForeignKey("foo.id"), primary_key=True)
  
      with self._expect_warning("has_inherited_table"):
          is_true(legacy_decl.has_inherited_table(Bar))
  
      with self._expect_warning("has_inherited_table"):
          is_false(legacy_decl.has_inherited_table(Foo))
  
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 4 for calling the DeprecatedImportsTest obj's underlying member method code with example usage: obj.test_has_inherited_table(registry) without return types