code: def encode_node(self):
      look_up = self.look_up_dict
      look_back = self.look_back_list
      for node in self.G.nodes():
          look_up[node] = self.node_size
          look_back.append(node)
          self.node_size += 1
          self.G.nodes[node]["status"] = ""
  
file_path: OpenNE/src/openne/graph.py
imports: import networkx
  import pickle
  import numpy
  import scipy.sparse
label_desc: Use image node_id 2 for calling the Graph obj's underlying member method code with example usage: obj.encode_node() without return types