def randomize_unitofwork():
 from sqlalchemy.orm import unitofwork, session, mapper, dependency
 from sqlalchemy.util import topological
 from sqlalchemy.testing.util import RandomSet
 topological.set = unitofwork.set = session.set = mapper.set = dependency.set = RandomSet

def randomize_unitofwork ( ) : from sqlalchemy . orm import unitofwork , session , mapper , dependency from sqlalchemy . util import topological from sqlalchemy . testing . util import RandomSet topological . set = unitofwork . set = session . set = mapper . set = dependency . set = RandomSet
use random-ordering sets within the unit of work in order to detect unit of work sorting issues .