

def roleTypeName(modelXbrl, roleURI, *args, **kwargs):
    modelManager = modelXbrl.modelManager
    if hasattr(modelManager, 'efmFiling'):
        modelRoles = modelXbrl.roleTypes.get(roleURI, ())
        if (modelRoles and modelRoles[0].definition):
            return re.sub('\\{\\s*(transposed|unlabeled|elements)\\s*\\}', '', modelRoles[0].definition.rpartition('-')[2], flags=re.I).strip()
        return roleURI
    return None

dataset/ETHPy150Open Arelle/Arelle/arelle/plugin/validate/EFM/__init__.py roleTypeName/original