code: def search_sample(index, sample_vec):
      print("search sample test >>>>>>")
      similarity_array, idx_array = index.search(sample_vec, k=10)
      print(idx_array, similarity_array)
  
file_path: BigDL/python/friesian/example/recall/generate_test_data.py
imports: from bigdl.friesian.utils import SafePickle
  import string
  import numpy
  import math
  import faiss
  import sys
  import random
  import argparse
label_desc: Use image node_id 2 for calling a global function with example usage: search_sample(index, sample_vec) without return types