code: def test_make_probs():
      alg = textdistance.ArithNCD(terminator="\x00")
      probs = alg._make_probs("lol", "lal")
      assert probs["l"] == (Fraction(0, 1), Fraction(4, 7))
      assert probs["o"][1] == Fraction(1, 7)
      assert probs["a"][1] == Fraction(1, 7)
  
imports: from fractions import Fraction
  from math import isclose
  import pytest
  import textdistance
label_desc: Use image node_id 2 for calling a global function with example usage: test_make_probs() without return types