code: def __init__(self, space, dim):
      self.index = hnswlib.Index(space, dim)
      self.lock = threading.Lock()
      self.dict_labels = {}
      self.cur_ind = 0
  
file_path: hnswlib/examples/python/pyw_hnswlib.py
imports: import hnswlib
  import numpy
  import threading
  import pickle
label_desc: Use image node_id 1 to create a new Index object  with example: obj = Index(space, dim)