class_docstr: Class for building, loading and working with Hierarchical Navigable Small World index.
class_docstr_tok: ["Class","for","building",",","loading","and","working","with","Hierarchical","Navigable","Small","World","index","."]
docstr: Save index to file.
  
  Parameters
  ----------
  index_path : string
      Path to file for saving index.
docstr_tok: ["Save","index","to","file",".","Parameters","--","--","--","--","--","index_path",":","string","Path","to","file","for","saving","index","."]
code: def save(self, index_path):
      """
      Save index to file.
  
      Parameters
      ----------
      index_path : string
          Path to file for saving index.
      """
      self._check_index()
      self._index._save(index_path)
  
imports: import sys
  import os
  from six import iteritems
  from enum import IntEnum
  from contextlib import contextmanager
  import json
label_desc: Use image node_id 4 for calling the Hnsw obj's underlying member method code with example usage: obj.save(index_path) without return types