code: def test_synonym_for(self, registry):
      with self._expect_warning("synonym_for"):
  
          @registry.mapped
          class Foo:
              __tablename__ = "foo"
              id = sa.Column(sa.Integer, primary_key=True)
  
              @legacy_decl.synonym_for("id")
              @property
              def id_prop(self):
                  return self.id
  
      f1 = Foo(id=5)
      eq_(f1.id_prop, 5)
  
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 5 for calling the DeprecatedImportsTest obj's underlying member method code with example usage: obj.test_synonym_for(registry) and returns: self