class_docstr: Class for building, loading and working with Hierarchical Navigable Small World index with SciKit-Learn
  Estimator compatible interface.
  Mostly drop-in replacement for sklearn.neighbors.NearestNeighbors (except for some parameters)
class_docstr_tok: ["Class","for","building",",","loading","and","working","with","Hierarchical","Navigable","Small","World","index","with","SciKit-Learn","Estimator","compatible","interface",".","Mostly","drop-in","replacement","for","sklearn.neighbors.NearestNeighbors","(","except","for","some","parameters",")"]
code: def _get_params(self, return_none):
      params = {}
      for key, value in self.__dict__.items():
          if key[0] != "_" and (return_none or (value is not None)):
              params[key] = value
      return params
  
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 HnswEstimator obj's underlying member method code with example usage: obj._get_params(return_none) and returns: params