code: def resize_index(self, size):
      if self.max_elements == 0:
          return self.init_index(size)
      else:
          return super().resize_index(size)
  
file_path: hnswlib/python_bindings/LazyIndex.py
imports: import hnswlib
label_desc: Use image node_id 6 for calling the LazyIndex obj's underlying member method code with example usage: obj.resize_index(size) and returns: self, super