code: def test_large_index(self):
      # Generate pairs of random points where the pair is super close
      f = 10
      # q = [random.gauss(0, 10) for z in xrange(f)]
      i = HnswIndex(f, "L2")
      for j in xrange(0, 10000, 2):
          p = [random.gauss(0, 1) for z in xrange(f)]
          x = [
              1 + pi + random.gauss(0, 1e-2) for pi in p
          ]  # todo: should be q[i]
          y = [1 + pi + random.gauss(0, 1e-2) for pi in p]
          i.add_data(x)
          i.add_data(y)
  
      i.build()
      for j in xrange(0, 10000, 2):
          self.assertEqual(i.search_by_id(j, 2), [j, j + 1])
          self.assertEqual(i.search_by_id(j + 1, 2), [j + 1, j])
  
imports: import unittest
  import random
  import os
  from n2 import HnswIndex
label_desc: Use image node_id 3 for calling the L2Test obj's underlying member method code with example usage: obj.test_large_index() without return types