code: def _expect_warning(self, name):
      return expect_deprecated_20(
          r"The ``%s\(\)`` function is now available as "
          r"sqlalchemy.orm.%s\(\)" % (name, name)
      )
  
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 1 for calling the DeprecatedImportsTest obj's underlying member method code with example usage: obj._expect_warning(name) and returns: expect_deprecated_20