code: def build_summarizer(summarizer_class, stop_words, stemmer, parser):
      summarizer = summarizer_class(stemmer)
      if summarizer_class is EdmundsonSummarizer:
          summarizer.null_words = stop_words
          summarizer.bonus_words = parser.significant_words
          summarizer.stigma_words = parser.stigma_words
      else:
          summarizer.stop_words = stop_words
      return summarizer
  
imports: from __future__ import absolute_import
  from __future__ import division, print_function, unicode_literals
  import sys
  from docopt import docopt
  from .None import __version__
  from .utils import ItemsCount, get_stop_words, read_stop_words, fetch_url
  from ._compat import to_string, to_unicode, to_bytes, PY3
  from .nlp.tokenizers import Tokenizer
  from .parsers.html import HtmlParser
  from .parsers.plaintext import PlaintextParser
  from .summarizers.luhn import LuhnSummarizer
  from .summarizers.edmundson import EdmundsonSummarizer
  from .summarizers.lsa import LsaSummarizer
  from .summarizers.text_rank import TextRankSummarizer
  from .summarizers.lex_rank import LexRankSummarizer
  from .summarizers.sum_basic import SumBasicSummarizer
  from .summarizers.kl import KLSummarizer
  from .nlp.stemmers import Stemmer
label_desc: Use image node_id 3 for calling a global function with example usage: build_summarizer(summarizer_class, stop_words, stemmer, parser) and returns: summarizer