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