code: def test_metric_kwarg():
      # Issue 211
      i = AnnoyIndex(2, metric="euclidean")
      i.add_item(0, [1, 0])
      i.add_item(1, [9, 0])
      assert i.get_distance(0, 1) == pytest.approx(8)
      assert i.f == 2
  
imports: import os
  import random
  import pytest
  from annoy import AnnoyIndex
label_desc: Use image node_id 12 for calling a global function with example usage: test_metric_kwarg() without return types