src/pybel/parser/parse_bel.py
def ensure_node(self, tokens: ParseResults) -> BaseEntity:
        """Turn parsed tokens into canonical node name and makes sure its in the graph."""
        node = parse_result_to_dsl(tokens)
        self.graph.add_node_from_data(node)
        return node
Turn parsed tokens into canonical node name and makes sure its in the graph.
Turn parsed tokens into canonical node name and makes sure its in the graph.
Turn parsed tokens into canonical node name and makes sure its in the graph .
def ensure_node(self, tokens: ParseResults) -> BaseEntity:
        node = parse_result_to_dsl(tokens)
        self.graph.add_node_from_data(node)
        return node
def ensure_node ( self , tokens : ParseResults ) -> BaseEntity : node = parse_result_to_dsl ( tokens ) self . graph . add_node_from_data ( node ) return node
Turn parsed tokens into canonical node name and makes sure its in the graph.
Turn parsed tokens into canonical node name and makes sure its in the graph .
"""Turn parsed tokens into canonical node name and makes sure its in the graph."""
self
tokens
ParseResults