code: def test_m2o_lazy_loader_on_transient(
      self,
      parent_fixture,
      loadonpending,
      attach,
      autoflush,
      manualflush,
      enable_relationship_rel,
  ):
      sess, p1, p2, c1, c2 = parent_fixture
      Parent, Child = self.classes("Parent", "Child")
  
      Child.parent.property.load_on_pending = loadonpending
      sess.autoflush = autoflush
      c2 = Child()
  
      if attach:
          state = instance_state(c2)
          state.session_id = sess.hash_key
  
      if enable_relationship_rel:
          sess.enable_relationship_loading(c2)
  
      c2.parent_id = p2.id
  
      if manualflush:
          sess.flush()
  
      if (loadonpending and attach) or enable_relationship_rel:
          assert c2.parent is p2
      else:
          assert c2.parent is None
  
imports: from sqlalchemy import ForeignKey
  from sqlalchemy import Integer
  from sqlalchemy import String
  from sqlalchemy import testing
  from sqlalchemy.orm import backref
  from sqlalchemy.orm import declarative_base
  from sqlalchemy.orm import relationship
  from sqlalchemy.orm.attributes import instance_state
  from sqlalchemy.testing import AssertsExecutionResults
  from sqlalchemy.testing import expect_warnings
  from sqlalchemy.testing import fixtures
  from sqlalchemy.testing.fixtures import fixture_session
  from sqlalchemy.testing.schema import Column
label_desc: Use image node_id 17 for calling the LoadOnFKsTest obj's underlying member method code with example usage: obj.test_m2o_lazy_loader_on_transient(parent_fixture, loadonpending, attach, autoflush, manualflush, enable_relationship_rel) without return types