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