def METHOD_NAME(self) -> bool:
    """当key对应的值为空或者true时，认为当前"""
    for key in constants.NODE_ROLE_MASTER_KEYS:
        if self.labels.get(key) in ["", "true"]:
            return True
    return False