code: def save_embeddings(self, filename):
      fout = open(filename, "w")
      node_num = len(self.vectors.keys())
      fout.write("{} {}\n".format(node_num, self.size))
      for node, vec in self.vectors.items():
          fout.write(
              "{} {}\n".format(node, " ".join([str(x) for x in vec]))
          )
      fout.close()
  
file_path: OpenNE/src/openne/node2vec.py
imports: from __future__ import print_function
  import time
  from gensim.models import Word2Vec
  from .None import walker
label_desc: Use image node_id 2 for calling the Node2vec obj's underlying member method code with example usage: obj.save_embeddings(filename) without return types