code: def add_items(self, data, ids=None):
      if ids is not None:
          assert len(data) == len(ids)
      num_added = len(data)
      with self.lock:
          start = self.cur_ind
          self.cur_ind += num_added
      int_labels = []
  
      if ids is not None:
          for dl in ids:
              int_labels.append(start)
              self.dict_labels[start] = dl
              start += 1
      else:
          for _ in range(len(data)):
              int_labels.append(start)
              self.dict_labels[start] = start
              start += 1
      self.index.add_items(data=data, ids=np.asarray(int_labels))
  
file_path: hnswlib/examples/python/pyw_hnswlib.py
imports: import hnswlib
  import numpy
  import threading
  import pickle
label_desc: Use image node_id 3 for calling the Index obj's underlying member method code with example usage: obj.add_items(data, ids) without return types