code: def test_rouge_l_sentence_level():
      reference_text = "police killed the gunman"
      reference = PlaintextParser(
          reference_text, Tokenizer("english")
      ).document.sentences
  
      candidate1_text = "police kill the gunman"
      candidate1 = PlaintextParser(
          candidate1_text, Tokenizer("english")
      ).document.sentences
  
      candidate2_text = "the gunman kill police"
      candidate2 = PlaintextParser(
          candidate2_text, Tokenizer("english")
      ).document.sentences
  
      candidate3_text = "the gunman police killed"
      candidate3 = PlaintextParser(
          candidate3_text, Tokenizer("english")
      ).document.sentences
  
      assert rouge_l_sentence_level(candidate1, reference) == approx(
          3 / 4
      )
      assert rouge_l_sentence_level(candidate2, reference) == approx(
          2 / 4
      )
      assert rouge_l_sentence_level(candidate3, reference) == approx(
          2 / 4
      )
  
file_path: sumy/tests/test_evaluation/test_evaluation_rouge.py
imports: from __future__ import absolute_import
  from __future__ import division, print_function, unicode_literals
  from pytest import approx
  from sumy.evaluation import rouge_n, rouge_l_sentence_level, rouge_l_summary_level
  from sumy.evaluation.rouge import _get_ngrams, _split_into_words, _get_word_ngrams, _len_lcs, _recon_lcs, _union_lcs
  from sumy.nlp.tokenizers import Tokenizer
  from sumy.parsers.plaintext import PlaintextParser
label_desc: Use image node_id 8 for calling a global function with example usage: test_rouge_l_sentence_level() without return types