code: def test_dist():
      f = 2
      i = AnnoyIndex(f, "manhattan")
      i.add_item(0, [0, 1])
      i.add_item(1, [1, 1])
      i.add_item(2, [0, 0])
  
      assert i.get_distance(0, 1) == pytest.approx(1.0)
      assert i.get_distance(1, 2) == pytest.approx(2.0)
  
file_path: annoy/test/manhattan_index_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_dist() without return types