code: def test_include_dists():
      # Double checking issue 112
      f = 40
      i = AnnoyIndex(f, "angular")
      v = numpy.random.normal(size=f)
      i.add_item(0, v)
      i.add_item(1, -v)
      i.build(10)
  
      indices, dists = i.get_nns_by_item(0, 2, 10, True)
      assert indices == [0, 1]
      assert dists[0] == pytest.approx(0.0)
      assert dists[1] == pytest.approx(2.0)
  
imports: import random
  import numpy
  import pytest
  from annoy import AnnoyIndex
label_desc: Use image node_id 15 for calling a global function with example usage: test_include_dists() without return types