code: def test_add_after_save():
      # 398
      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)
      t.save("test.annoy")
  
      # Used to segfault:
      v = [random.gauss(0, 1) for z in range(100)]
      with pytest.raises(Exception):
          t.add_item(i, v)
  
imports: import os
  import random
  import pytest
  from annoy import AnnoyIndex
label_desc: Use image node_id 21 for calling a global function with example usage: test_add_after_save() without return types