code: def test_large_index():
      # Generate pairs of random points where the pair is super close
      f = 10
      i = AnnoyIndex(f, "angular")
      for j in range(0, 10000, 2):
          p = [random.gauss(0, 1) for z in range(f)]
          f1 = random.random() + 1
          f2 = random.random() + 1
          x = [f1 * pi + random.gauss(0, 1e-2) for pi in p]
          y = [f2 * pi + random.gauss(0, 1e-2) for pi in p]
          i.add_item(j, x)
          i.add_item(j + 1, y)
  
      i.build(10)
      for j in range(0, 10000, 2):
          assert i.get_nns_by_item(j, 2) == [j, j + 1]
          assert i.get_nns_by_item(j + 1, 2) == [j + 1, j]
  
imports: import random
  import numpy
  import pytest
  from annoy import AnnoyIndex
label_desc: Use image node_id 7 for calling a global function with example usage: test_large_index() without return types