code: def test_wrong_length(n_points=1000, n_trees=10):
      f = 10
      i = AnnoyIndex(f, "euclidean")
      i.add_item(0, [random.gauss(0, 1) for x in range(f)])
      with pytest.raises(IndexError):
          i.add_item(1, [random.gauss(0, 1) for x in range(f + 1000)])
      with pytest.raises(IndexError):
          i.add_item(2, [])
  
      i.build(n_trees)
  
file_path: annoy/test/types_test.py
imports: import random
  import numpy
  import pytest
  from annoy import AnnoyIndex
label_desc: Use image node_id 3 for calling a global function with example usage: test_wrong_length(n_points, n_trees) without return types