code: def _build_summarizer(stop_words, stemmer=None):
      summarizer = (
          SumBasicSummarizer()
          if stemmer is None
          else SumBasicSummarizer(stemmer)
      )
      summarizer.stop_words = stop_words
      return summarizer
  
file_path: sumy/tests/test_summarizers/test_sum_basic.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import pytest
  from sumy.models.dom._sentence import Sentence
  from sumy.nlp.tokenizers import Tokenizer
  from sumy.summarizers.sum_basic import SumBasicSummarizer
  from sumy.nlp.stemmers import Stemmer
  from ..utils import build_document
label_desc: Use image node_id 1 for calling a global function with example usage: _build_summarizer(stop_words, stemmer) and returns: summarizer