code: def test_build_twice():
      # 420
      t = AnnoyIndex(100, "angular")
      for i in range(1000):
          t.add_item(i, [random.gauss(0, 1) for z in range(100)])
      t.build(10)
      # Used to segfault:
      with pytest.raises(Exception):
          t.build(10)
  
imports: import os
  import random
  import pytest
  from annoy import AnnoyIndex
label_desc: Use image node_id 22 for calling a global function with example usage: test_build_twice() without return types