code: def test_word_completer_static_word_list():
      completer = WordCompleter(["abc", "def", "aaa"])
  
      # Static list on empty input.
      completions = completer.get_completions(
          Document(""), CompleteEvent()
      )
      assert [c.text for c in completions] == ["abc", "def", "aaa"]
  
      # Static list on non-empty input.
      completions = completer.get_completions(
          Document("a"), CompleteEvent()
      )
      assert [c.text for c in completions] == ["abc", "aaa"]
  
      completions = completer.get_completions(
          Document("A"), CompleteEvent()
      )
      assert [c.text for c in completions] == []
  
      # Multiple words ending with space. (Accept all options)
      completions = completer.get_completions(
          Document("test "), CompleteEvent()
      )
      assert [c.text for c in completions] == ["abc", "def", "aaa"]
  
      # Multiple words. (Check last only.)
      completions = completer.get_completions(
          Document("test a"), CompleteEvent()
      )
      assert [c.text for c in completions] == ["abc", "aaa"]
  
imports: from __future__ import annotations
  import os
  import re
  import shutil
  import tempfile
  from contextlib import contextmanager
  from prompt_toolkit.completion import CompleteEvent, FuzzyWordCompleter, NestedCompleter, PathCompleter, WordCompleter, merge_completers
  from prompt_toolkit.document import Document
label_desc: Use image node_id 12 for calling a global function with example usage: test_word_completer_static_word_list() without return types