def __get_attribute__(self, attr):
attr_val = self.obj_dict['<STR_LIT>'].get(attr, None)<EOL>if attr_val is None:<EOL><INDENT>default_node_name = self.obj_dict['<STR_LIT:type>']<EOL>if default_node_name in ('<STR_LIT>', '<STR_LIT>', '<STR_LIT>'):<EOL><INDENT>default_node_name = '<STR_LIT>'<EOL><DEDENT>g = self.get_parent_graph()<EOL>if g is not None:<EOL><INDENT>defaults = g.get_node( default_node_name )<EOL><DEDENT>else:<EOL><INDENT>return None<EOL><DEDENT>if not isinstance(defaults, (list, tuple)):<EOL><INDENT>defaults = [defaults]<EOL><DEDENT>for default in defaults:<EOL><INDENT>attr_val = default.obj_dict['<STR_LIT>'].get(attr, None)<EOL>if attr_val:<EOL><INDENT>return attr_val<EOL><DEDENT><DEDENT><DEDENT>else:<EOL><INDENT>return attr_val<EOL><DEDENT>return None<EOL>
Look for default attributes for this node