code: def _test_building_with_threads(n_jobs):
      n, f = 10000, 10
      n_trees = 31
      i = AnnoyIndex(f, "euclidean")
      for j in range(n):
          i.add_item(j, numpy.random.normal(size=f))
      assert i.build(n_trees, n_jobs=n_jobs)
      assert n_trees == i.get_n_trees()
  
imports: import numpy
  from annoy import AnnoyIndex
label_desc: Use image node_id 1 for calling a global function with example usage: _test_building_with_threads(n_jobs) without return types