code: def get_stop_words(language, cache=True):
      """
      :type language: basestring
  
      :rtype: list
      """
      try:
          language = LANGUAGE_MAPPING[language]
      except KeyError:
          if language not in AVAILABLE_LANGUAGES:
              raise StopWordError(
                  '{0}" language is unavailable.'.format(language)
              )
  
      if cache and language in STOP_WORDS_CACHE:
          return STOP_WORDS_CACHE[language]
  
      language_filename = os.path.join(
          STOP_WORDS_DIR, language + ".txt"
      )
      try:
          with open(language_filename, "rb") as language_file:
              stop_words = [
                  line.decode("utf-8").strip()
                  for line in language_file.readlines()
              ]
              stop_words = apply_filters(stop_words, language)
      except IOError:
          raise StopWordError(
              '{0}" file is unreadable, check your installation.'.format(
                  language_filename
              )
          )
  
      if cache:
          STOP_WORDS_CACHE[language] = stop_words
  
      return stop_words
  
file_path: python-stop-words/stop_words/__init__.py
imports: import json
  import os
label_desc: Use image node_id 2 for calling a global function with example usage: get_stop_words(language, cache) and returns: stop_words, STOP_WORDS_CACHE