def METHOD_NAME(self, context):
    if self.dimensions < 4:
        self.formula4 = ""
    if self.dimensions < 3:
        self.formula3 = ""
    if self.dimensions < 2:
        self.formula2 = ""
    self.adjust_sockets()
    updateNode(self, context)