docstr: test has been enhanced to also test #7224
docstr_tok: ["test","has","been","enhanced","to","also","test","#","7224"]
code: def test_selectinload_w_joinedload_after(self, calling_style):
      """test has been enhanced to also test #7224"""
  
      A, B, C = self.classes("A", "B", "C")
  
      s = Session(testing.db)
  
      partitioned_b = self.partitioned_b
  
      if calling_style == "ac_attribute":
          opt = selectinload(A.partitioned_bs).joinedload(
              partitioned_b.cs
          )
      elif calling_style == "ac_attr_w_of_type":
          # this would have been a workaround for people who encountered
          # #7224. The exception that was raised for "ac_attribute" actually
          # suggested to use of_type() so we can assume this pattern is
          # probably being used
          opt = selectinload(
              A.partitioned_bs.of_type(partitioned_b)
          ).joinedload(partitioned_b.cs)
      else:
          assert False
  
      def go():
          for a1 in s.query(A).options(opt):
              for b in a1.partitioned_bs:
                  eq_(len(b.cs), 2)
  
      self.assert_sql_count(testing.db, go, 2)
  
imports: from sqlalchemy import and_
  from sqlalchemy import Column
  from sqlalchemy import exc
  from sqlalchemy import ForeignKey
  from sqlalchemy import func
  from sqlalchemy import insert_sentinel
  from sqlalchemy import Integer
  from sqlalchemy import join
  from sqlalchemy import select
  from sqlalchemy import testing
  from sqlalchemy.orm import aliased
  from sqlalchemy.orm import joinedload
  from sqlalchemy.orm import noload
  from sqlalchemy.orm import relationship
  from sqlalchemy.orm import selectinload
  from sqlalchemy.orm import Session
  from sqlalchemy.testing import eq_
  from sqlalchemy.testing import expect_warnings
  from sqlalchemy.testing import fixtures
  from sqlalchemy.testing.assertions import expect_raises_message
  from sqlalchemy.testing.assertsql import CompiledSQL
  from sqlalchemy.testing.entities import ComparableEntity
  from sqlalchemy.testing.fixtures import fixture_session
label_desc: Use image node_id 5 for calling the AliasedClassRelationshipTest obj's underlying member method code with example usage: obj.test_selectinload_w_joinedload_after(calling_style) without return types