def METHOD_NAME(self):
    for key, dvalue, checker in NODE_STYLE_DEFAULT:
        if key not in self:
            self[key] = dvalue
        elif not checker(self[key]):
            raise ValueError("'%s' attribute in node style has not a valid value: %s" %\
                                 (key, self[key]))