code: def test_key_3():
      document = build_document(
          (
              "wa",
              "wa wa",
              "wa wa wa",
              "wa wa wa wa",
              "wa Wa Wa Wa wa",
          ),
          ("x X x X",),
      )
      summarizer = EdmundsonSummarizer()
      summarizer.bonus_words = (
          "wa",
          "X",
      )
  
      sentences = summarizer.key_method(document, 3)
      assert list(map(to_unicode, sentences)) == [
          "wa wa wa",
          "wa wa wa wa",
          "wa Wa Wa Wa wa",
      ]
  
      sentences = summarizer.key_method(document, 3, weight=0)
      assert list(map(to_unicode, sentences)) == [
          "wa wa wa wa",
          "wa Wa Wa Wa wa",
          "x X x X",
      ]
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import pytest
  from sumy._compat import to_unicode
  from sumy.summarizers.edmundson import EdmundsonSummarizer
  from ..utils import build_document, build_document_from_string
label_desc: Use image node_id 19 for calling a global function with example usage: test_key_3() without return types