code: def get_neighbors(hnsw, i, level):
      "list the neighbors for node i at level"
      assert i < hnsw.levels.size()
      assert level < hnsw.levels.at(i)
      be = np.empty(2, "uint64")
      hnsw.neighbor_range(
          i, level, faiss.swig_ptr(be), faiss.swig_ptr(be[1:])
      )
      return [hnsw.neighbors.at(j) for j in range(be[0], be[1])]
  
file_path: faiss/benchs/link_and_code/bench_link_and_code.py
imports: from __future__ import print_function
  import os
  import sys
  import time
  import numpy
  import faiss
  import argparse
  import datasets
  from datasets import sanitize
  import neighbor_codec
label_desc: Use image node_id 2 for calling a global function with example usage: get_neighbors(hnsw, i, level) and returns: unknown