code: def test_modified_precision(references, candidate, expected):
      for n, (e_n, e_d) in enumerate(expected, start=1):
          n, d = modified_precision(references, candidate, n)
          assert n == e_n and d == e_d
  
imports: import pytest
  from ignite.metrics.nlp.utils import lcs, modified_precision, ngrams
label_desc: Use image node_id 4 for calling a global function with example usage: test_modified_precision(references, candidate, expected) without return types