code: def test_search_by_vector(self):
      f = 3
      i = HnswIndex(f)
      i.add_data([0, 0, 1])
      i.add_data([0, 1, 0])
      i.add_data([1, 0, 0])
      i.build(max_m0=10, m=5)
  
      self.assertEqual(i.search_by_vector([3, 2, 1], 3), [2, 1, 0])
      self.assertEqual(i.search_by_vector([1, 2, 3], 3), [0, 1, 2])
      self.assertEqual(i.search_by_vector([2, 0, 1], 3), [2, 0, 1])
  
imports: import unittest
  import random
  import os
  from n2 import HnswIndex
label_desc: Use image node_id 1 for calling the AngularTest obj's underlying member method code with example usage: obj.test_search_by_vector() without return types