def get_node_by_id(self, node_id):
tmp_nodes = self.diagram_graph.nodes(data=True)<EOL>for node in tmp_nodes:<EOL><INDENT>if node[<NUM_LIT:0>] == node_id:<EOL><INDENT>return node<EOL><DEDENT><DEDENT>
Gets a node with requested ID.
Returns a tuple, where first value is node ID, second - a dictionary of all node attributes.

:param node_id: string with ID of node.