code: def test_distance_restricted(left, right, expected):
      actual = ALG(external=False)(left, right)
      assert actual == expected
  
      actual = ALG(external=True)(left, right)
      assert actual == expected
  
      actual = ALG()._pure_python_restricted(left, right)
      assert actual == expected
  
imports: import pytest
  import textdistance
label_desc: Use image node_id 1 for calling a global function with example usage: test_distance_restricted(left, right, expected) without return types