code: def test_normalization_by_one(left, right, alg):
      d = alg.normalized_distance(left, right)
      s = alg.normalized_similarity(left, right)
      assert isclose(s + d, 1)
  
file_path: textdistance/tests/test_common.py
imports: from math import isclose
  import hypothesis
  import pytest
  import textdistance
label_desc: Use image node_id 2 for calling a global function with example usage: test_normalization_by_one(left, right, alg) without return types