code: def test_quality_measurement():
      oqd = qual.OcrQualityDictionary(
          wordlist=[
              "words",
              "words",
              "quick",
              "brown",
              "fox",
              "dog",
              "lazy",
          ]
      )
      assert len(oqd.dictionary) == 6  # 6 unique
  
      assert (
          oqd.measure_words_matched(
              "The quick brown fox jumps quickly over the lazy dog"
          )
          == 0.5
      )
      assert (
          oqd.measure_words_matched(
              "12345 10% _f  7fox -brown   | words"
          )
          == 1.0
      )
  
      assert oqd.measure_words_matched("quick quick quick") == 1.0
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_quality_measurement() without return types