code: def test_dist_3():
      f = 2
      i = AnnoyIndex(f, "angular")
      i.add_item(0, [97, 0])
      i.add_item(1, [42, 42])
  
      dist = ((1 - 2**-0.5) ** 2 + (2**-0.5) ** 2) ** 0.5
  
      assert i.get_distance(0, 1) == pytest.approx(dist)
  
imports: import random
  import numpy
  import pytest
  from annoy import AnnoyIndex
label_desc: Use image node_id 5 for calling a global function with example usage: test_dist_3() without return types