

def getDrsRels(val, fromELR, rels, drsELR, drsRelsFrom, drsRelsTo, fromConcepts=None):
    if (not fromConcepts):
        fromConcepts = set()
    for rel in rels:
        relTo = rel.toModelObject
        if isinstance(relTo, ModelConcept):
            domMbrRels[rel.fromModelObject].append(rel)
            drsRelsTo[relTo].append(rel)
            toELR = rel.targetRole
            if (not toELR):
                toELR = fromELR
            if (relTo not in fromConcepts):
                fromConcepts.add(relTo)
                domMbrRels = val.modelXbrl.relationshipSet(XbrlConst.domainMember, toELR).fromModelObject(relTo)
                getDrsRels(val, toELR, domMbrRels, drsELR, drsRelsFrom, drsRelsTo, fromConcepts)
                fromConcepts.discard(relTo)
    return False

dataset/ETHPy150Open Arelle/Arelle/arelle/ValidateFilingDimensions.py getDrsRels/VarMisuse@62/97 `drsRelsFrom`->`domMbrRels`