def checkNodeAttrsForm(self, dictNodeAttrs): '''Return None if an attribute of a node is not valid, else an error message. Argument(s): dictNodeAttrs (str): Dot attributes values of the nodes ''' for attr in dictNodeAttrs.keys(): # Case of pos attribute if (attr == NodeDotAttrs.pos.value and not NodeDotPosUtils.isPosValid(dictNodeAttrs[attr])): return self.formatErrorMessage(NodeDotAttrs.pos.value, dictNodeAttrs[attr]) # All attributes are valid return None