def init_collection(obj, key):
 state = instance_state(obj)
 dict_ = state.dict
 return init_state_collection(state, dict_, key)

def init_collection ( obj , key ) : state = instance_state ( obj ) dict_ = state . dict return init_state_collection ( state , dict_ , key )
initialize a collection attribute and return the collection adapter .