def ancestorOrSelf(domainMemberRelationshipSet,sourceConcept,result=None):
    if not result:
        result = set()
    if not sourceConcept not in result:
        result.add(sourceConcept)
        for rels in domainMemberRelationshipSet.toModelObject(sourceConcept):
            ancestorOrSelf(domainMemberRelationshipSet, rels.fromModelObject, result)
    return result
dataset/ETHPy150Open Arelle/Arelle/arelle/ValidateFilingDimensions.py/ancestorOrSelf/operator `in` -> `not in`