code: def test_dist_2():
      f = 2
      i = AnnoyIndex(f, "angular")
      i.add_item(0, [1000, 0])
      i.add_item(1, [10, 0])
  
      assert i.get_distance(0, 1) == pytest.approx(0)
  
imports: import random
  import numpy
  import pytest
  from annoy import AnnoyIndex
label_desc: Use image node_id 4 for calling a global function with example usage: test_dist_2() without return types