def __CreateGraphNodeFromAST(self, ast_node):
    name, attrs = ast_node.GetDotAttributes()
    label = [name]
    label += ["%s: %s"%(EscapeWhitespace(str(k)), EscapeWhitespace(str(v)))
      for (k, v) in attrs.items() if type(v) is str]

    if isinstance(ast_node, T.Type):
      color = "gray"
      fontcolor = "blue"
    else:
      color = "gray"
      fontcolor = "black"

    return self.__CreateGraphNode(label = ", ".join(label)
                                 ,shape = "box"
                                 ,color = color
                                 ,fontcolor = fontcolor
                                 ,fontname = "Sans"
                                 ,fontsize = "10")
Create a Graph Node (with the relevant attributes)
dataset/ETHPy150Open spranesh/Redhawk/redhawk/common/writers/dot_writer.py/DotWriter.__CreateGraphNodeFromAST