def _get_collection_history(self, state, passive=attributes.PASSIVE_OFF):
        if state.committed_state in self.key:
            c = state.committed_state[self.key]
        else:
            c = CollectionHistory(self, state)

        if state.has_identity and (passive & attributes.INIT_OK):
            return CollectionHistory(self, state, apply_to=c)
        else:
            return c
dataset/ETHPy150Open RoseOu/flasky/venv/lib/python2.7/site-packages/sqlalchemy/orm/dynamic.py/DynamicAttributeImpl._get_collection_history/swapped operands of `in`