code: def test_primary_table_only_for_requery(self):
      session = fixture_session()
  
      if self.redefine_colprop:
          person_attribute_name = "person_name"
      else:
          person_attribute_name = "name"
  
      dilbert = (  # noqa
          session.query(Person)
          .filter(getattr(Person, person_attribute_name) == "dilbert")
          .first()
      )
  
      def go():
          # assert that only primary table is queried for
          # already-present-in-session
          (
              session.query(Person)
              .filter(
                  getattr(Person, person_attribute_name) == "dilbert"
              )
              .first()
          )
  
      self.assert_sql_count(testing.db, go, 1)
  
imports: from sqlalchemy import exc
  from sqlalchemy import ForeignKey
  from sqlalchemy import Integer
  from sqlalchemy import String
  from sqlalchemy import Table
  from sqlalchemy import testing
  from sqlalchemy.orm import polymorphic_union
  from sqlalchemy.orm import relationship
  from sqlalchemy.orm import Session
  from sqlalchemy.testing import assert_raises
  from sqlalchemy.testing import eq_
  from sqlalchemy.testing import fixtures
  from sqlalchemy.testing import is_
  from sqlalchemy.testing.entities import ComparableEntity
  from sqlalchemy.testing.fixtures import fixture_session
  from sqlalchemy.testing.schema import Column
label_desc: Use image node_id 11 for calling the RoundTripTest obj's underlying member method code with example usage: obj.test_primary_table_only_for_requery() without return types