def hasparent(self, state):
        return self.parent.class_manager.get_impl(self.key).hasparent(state)
return True if the given object instance has a parent,
dataset/ETHPy150Open zzzeek/sqlalchemy/lib/sqlalchemy/orm/dependency.py/DependencyProcessor.hasparent