code: def test_similarity(left, right, expected):
      actual = ALG(left, right)
      assert isclose(actual, expected)
  
imports: from fractions import Fraction
  from math import isclose
  import pytest
  import textdistance
label_desc: Use image node_id 1 for calling a global function with example usage: test_similarity(left, right, expected) without return types