code: def test_scalar_move_preloaded(self):
      User, Address = self.classes.User, self.classes.Address
  
      sess = fixture_session()
  
      u1 = User(name="jack")
      u2 = User(name="ed")
      a1 = Address(email_address="a1")
      a1.user = u1
      sess.add_all([u1, u2, a1])
      sess.commit()
  
      # u1.addresses is loaded
      u1.addresses
  
      # direct set - the "old" is "fetched",
      # but only from the local session - not the
      # database, due to the PASSIVE_NO_FETCH flag.
      # this is a more fine grained behavior introduced
      # in 0.6
      a1.user = u2
  
      assert a1 not in u1.addresses
      assert a1 in u2.addresses
  
imports: from sqlalchemy import testing
  from sqlalchemy import text
  from sqlalchemy.orm import attributes
  from sqlalchemy.orm import backref
  from sqlalchemy.orm import relationship
  from sqlalchemy.orm import Session
  from sqlalchemy.testing import eq_
  from sqlalchemy.testing import is_
  from sqlalchemy.testing.fixtures import fixture_session
  from test.orm import _fixtures
label_desc: Use image node_id 6 for calling the O2MCollectionTest obj's underlying member method code with example usage: obj.test_scalar_move_preloaded() without return types