def postprocess(self, obj):
        # We can't set the labels when we create a Node, because they're
        # ManyToMany related, and the node doesn't exist yet.
        labels=[]
        for label_name in self.get_requirements("tosca.relationships.HasLabel"):
            labels.append(self.get_xos_object(NodeLabel, name=label_name))
        if labels:
            self.info(obj % "Updated labels for node '%s'")
            obj.labels = labels
            obj.save()
dataset/ETHPy150Open open-cloud/xos/xos/tosca/resources/node.py/XOSNode.postprocess/swapped operands of `%`