def corresponds_to(self, entity):
    if (self.entity_zero is None):
        return False
    elif _is_aliased_class(entity):
        return (entity is self.entity_zero)
    else:
        return ((not _is_aliased_class(self.entity_zero)) and entity.common_parent(self.entity_zero))
def corresponds_to(self, entity):
    if (self.entity_zero is None):
        return False
    elif _is_aliased_class(entity):
        return (entity is self.entity_zero)
    else:
        return ((not _is_aliased_class(self.entity_zero)) and entity.common_parent(self.entity_zero))