code: def test_sentences_rating():
      document = build_document(
          [
              "a c e g",
              "a b c d e f g",
              "b d f",
          ]
      )
      summarizer = ReductionSummarizer()
      summarizer.stop_words = ["I", "am", "and", "that"]
  
      ratings = summarizer.rate_sentences(document)
      assert len(ratings) == 3
      assert (
          ratings[document.sentences[1]]
          > ratings[document.sentences[0]]
      )
      assert (
          ratings[document.sentences[0]]
          > ratings[document.sentences[2]]
      )
  
file_path: sumy/tests/test_summarizers/test_reduction.py
imports: from __future__ import absolute_import
  from __future__ import division, print_function, unicode_literals
  from sumy.summarizers.reduction import ReductionSummarizer
  from sumy.nlp.stemmers import Stemmer
  from sumy._compat import to_unicode
  from ..utils import build_document
label_desc: Use image node_id 6 for calling a global function with example usage: test_sentences_rating() without return types