code: def read_glove(self, glove_file):
      portion = 500000
      print("reading file: ", glove_file)
      wb = None
      with open(glove_file, encoding="utf-8") as f:
          for num, line in enumerate(f):
              items = line.split(" ")
              word = items[0]
              vector = [float(x) for x in items[1:]]
              if num % portion == portion - 1:
                  print("read lines: {}".format(num))
                  wb.write()
                  wb = None
  
              if not wb:
                  wb = self.db.write_batch()
  
              self.add_vector(word, vector, wb)
          if wb:
              wb.write()
  
imports: import shutil
  import numpy
  import plyvel
  import os.path
  import sys
  from bert.modeling import *
  from bert.tokenization import *
  import json
  import os.path
  import numpy
label_desc: Use image node_id 3 for calling the EmbeddingsDbResolver obj's underlying member method code with example usage: obj.read_glove(glove_file) without return types