def has_parent(self, state, key, optimistic=False):
        return self.get_impl(key).hasparent(state, optimistic=optimistic)
TODO
dataset/ETHPy150Open RoseOu/flasky/venv/lib/python2.7/site-packages/sqlalchemy/orm/instrumentation.py/ClassManager.has_parent