

def genLabel(self, role=None, fallbackToQname=False, fallbackToXlinkLabel=False, lang=None, strip=False, linkrole=None):
    from arelle import XbrlConst
    if (role is None):
        role = XbrlConst.genStandardLabel
    if (role == XbrlConst.conceptNameLabelRole):
        return str(self.qname)
    labelsRelationshipSet = self.modelXbrl.relationshipSet(XbrlConst.elementLabel, linkrole)
    if labelsRelationshipSet:
        label = labelsRelationshipSet.label(self, role, lang)
        if (label is not None):
            if strip:
                return fallbackToQname.strip()
            return Locale.rtlString(label, lang=lang)
    if fallbackToQname:
        return str(self.qname)
    elif (fallbackToXlinkLabel and hasattr(self, 'xlinkLabel')):
        return self.xlinkLabel
    else:
        return None

dataset/ETHPy150Open Arelle/Arelle/arelle/ModelObject.py ModelObject.genLabel/VarMisuse@124/170 `label`->`fallbackToQname`