original_docstring: Add a node to the graph and return a unique ID to it
docstring: Add a node to the graph and return a unique ID to it
docstring_tokens: Add a node to the graph and return a unique ID to it
code: def add_node(self, node_type, base_key, value):
          """Add a node to the graph and return a unique ID to it"""
          full_key = '{}_{}'.format(node_type, base_key)
          if full_key not in self.nodes:
              if value is None:
                  value = GraphvizSafeLabel.escape(base_key)
              self.nodes[full_key] = (node_type, value)
          elif value is not None and self.nodes[full_key] != (node_type, value):
              logger.warning("Graph node %r has two values: %r and %r",
                             full_key, self.nodes[full_key], (node_type, value))
          return full_key
code_tokens: def add_node ( self , node_type , base_key , value ) : full_key = '{}_{}' . format ( node_type , base_key ) if full_key not in self . nodes : if value is None : value = GraphvizSafeLabel . escape ( base_key ) self . nodes [ full_key ] = ( node_type , value ) elif value is not None and self . nodes [ full_key ] != ( node_type , value ) : logger . warning ( "Graph node %r has two values: %r and %r" , full_key , self . nodes [ full_key ] , ( node_type , value ) ) return full_key
short_docstring: Add a node to the graph and return a unique ID to it
short_docstring_tokens: Add a node to the graph and return a unique ID to it
comment: """Add a node to the graph and return a unique ID to it"""